issue DB schema statements each within savepoints

This commit is contained in:
Oliver Gorwits
2018-05-09 06:07:30 +01:00
parent 3d27184b1c
commit d959adde36
4 changed files with 34 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
BEGIN;
ALTER TABLE netmap_positions DROP CONSTRAINT "netmap_positions_device_groups_vlan_key";
ALTER TABLE netmap_positions RENAME COLUMN device_groups TO host_groups;
ALTER TABLE netmap_positions ALTER COLUMN host_groups SET DEFAULT '{}';
ALTER TABLE netmap_positions ADD COLUMN "device" inet;
ALTER TABLE netmap_positions ADD COLUMN "locations" text[] DEFAULT '{}' NOT NULL;
COMMIT;