nidus-sync/db/migrations/00094_publicreport_address_number.sql

13 lines
530 B
MySQL
Raw Normal View History

2026-03-08 03:14:38 +00:00
-- +goose Up
ALTER TABLE publicreport.nuisance ADD COLUMN address_number TEXT;
UPDATE publicreport.nuisance SET address_number = '';
ALTER TABLE publicreport.nuisance ALTER COLUMN address_number SET NOT NULL;
ALTER TABLE publicreport.pool ADD COLUMN address_number TEXT;
UPDATE publicreport.pool SET address_number = '';
ALTER TABLE publicreport.pool ALTER COLUMN address_number SET NOT NULL;
-- +goose Down
ALTER TABLE publicreport.pool DROP COLUMN address_number;
ALTER TABLE publicreport.nuisance DROP COLUMN address_number;