add new db migration
This commit is contained in:
parent
be0c149133
commit
a97d217022
5
migrations/028.landuse-source.down.sql
Normal file
5
migrations/028.landuse-source.down.sql
Normal file
@ -0,0 +1,5 @@
|
||||
ALTER TABLE buildings DROP COLUMN IF EXISTS current_landuse_source;
|
||||
|
||||
ALTER TABLE buildings DROP COLUMN IF EXISTS current_landuse_source_detail;
|
||||
|
||||
ALTER TABLE buildings DROP COLUMN IF EXISTS current_landuse_link;
|
7
migrations/028.landuse-source.up.sql
Normal file
7
migrations/028.landuse-source.up.sql
Normal file
@ -0,0 +1,7 @@
|
||||
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS current_landuse_source varchar;
|
||||
ALTER TABLE buildings ADD CONSTRAINT buildings_current_landuse_source_len CHECK (length(current_landuse_source) < 150);
|
||||
|
||||
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS current_landuse_source_detail varchar;
|
||||
ALTER TABLE buildings ADD CONSTRAINT current_landuse_source_detail_len CHECK (length(current_landuse_source_detail) < 500);
|
||||
|
||||
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS current_landuse_link text[];
|
Loading…
Reference in New Issue
Block a user