diff --git a/db/migrations/00049_publicreport_nuisance_h3cell.sql b/db/migrations/00049_publicreport_nuisance_h3cell.sql index 3a098aa2..79f703c9 100644 --- a/db/migrations/00049_publicreport_nuisance_h3cell.sql +++ b/db/migrations/00049_publicreport_nuisance_h3cell.sql @@ -1,6 +1,5 @@ -- +goose Up ALTER TABLE publicreport.nuisance ADD COLUMN h3cell h3index; -ALTER TABLE publicreport.nuisance ADD COLUMN organization_id INTEGER REFERENCES organization(id); CREATE TABLE publicreport.nuisance_image ( image_id INTEGER NOT NULL REFERENCES publicreport.image(id), nuisance_id INTEGER NOT NULL REFERENCES publicreport.nuisance(id), @@ -9,4 +8,3 @@ CREATE TABLE publicreport.nuisance_image ( -- +goose Down DROP TABLE publicreport.nuisance_image; ALTER TABLE publicreport.nuisance DROP COLUMN h3cell; -ALTER TABLE publicreport.nuisance DROP COLUMN organization_id;