1BEGIN; 2 3ALTER TABLE netmap_positions DROP CONSTRAINT "netmap_positions_device_groups_vlan_key"; 4 5ALTER TABLE netmap_positions RENAME COLUMN device_groups TO host_groups; 6 7ALTER TABLE netmap_positions ALTER COLUMN host_groups SET DEFAULT '{}'; 8 9ALTER TABLE netmap_positions ADD COLUMN "device" inet; 10 11ALTER TABLE netmap_positions ADD COLUMN "locations" text[] DEFAULT '{}' NOT NULL; 12 13COMMIT; 14