diff --git a/internal/migrations/files/0003.sql b/internal/migrations/files/0003.sql new file mode 100644 index 0000000..9c8d948 --- /dev/null +++ b/internal/migrations/files/0003.sql @@ -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; diff --git a/internal/model/db.json b/internal/model/db.json index ba3c843..d540094 100644 --- a/internal/model/db.json +++ b/internal/model/db.json @@ -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", diff --git a/main.go b/main.go index 9164a70..4a8a2a9 100644 --- a/main.go +++ b/main.go @@ -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`], )