Remove columns for non-existant values

This commit is contained in:
Nise Void 2018-05-22 11:59:21 +02:00
parent 3e3be7f22c
commit aa1b88a8f3
Signed by: NiseVoid
GPG Key ID: FBA14AC83EA602F3
3 changed files with 7 additions and 40 deletions

View File

@ -0,0 +1,7 @@
ALTER TABLE measurement
DROP COLUMN p_gem_1,
DROP COLUMN p_gem_2,
DROP COLUMN p_gem_3,
DROP COLUMN s_gem_1,
DROP COLUMN s_gem_2,
DROP COLUMN s_gem_3;

View File

@ -74,24 +74,6 @@
"null": false,
"size": 8
},
{
"name": "p_gem_1",
"type": "double precision",
"null": false,
"size": 8
},
{
"name": "p_gem_2",
"type": "double precision",
"null": false,
"size": 8
},
{
"name": "p_gem_3",
"type": "double precision",
"null": false,
"size": 8
},
{
"name": "p_max_1",
"type": "double precision",
@ -110,24 +92,6 @@
"null": false,
"size": 8
},
{
"name": "s_gem_1",
"type": "double precision",
"null": false,
"size": 8
},
{
"name": "s_gem_2",
"type": "double precision",
"null": false,
"size": 8
},
{
"name": "s_gem_3",
"type": "double precision",
"null": false,
"size": 8
},
{
"name": "s_max_1",
"type": "double precision",

View File

@ -98,9 +98,7 @@ func insertSets(sets Sets) {
m.Ep1, m.Ep2, m.Ep3,
m.IGem1, m.IGem2, m.IGem3,
m.IMax1, m.IMax2, m.IMax3,
m.PGem1, m.PGem2, m.PGem3,
m.PMax1, m.PMax2, m.PMax3,
m.SGem1, m.SGem2, m.SGem3,
m.SMax1, m.SMax2, m.SMax3,
m.UGem1, m.UGem2, m.UGem3,
)
@ -111,9 +109,7 @@ func insertSets(sets Sets) {
v[`EP1`], v[`EP2`], v[`EP3`],
v[`IGem1`], v[`IGem2`], v[`IGem3`],
v[`IMax1`], v[`IMax2`], v[`IMax3`],
v[`PGem1`], v[`PGem2`], v[`PGem3`],
v[`PMax1`], v[`PMax2`], v[`PMax3`],
v[`SGem1`], v[`SGem2`], v[`SGem3`],
v[`SMax1`], v[`SMax2`], v[`SMax3`],
v[`UGem1`], v[`UGem2`], v[`UGem3`],
)