diff --git a/migrations/0xx.landuse.down.sql b/migrations/0xx.landuse.down.sql index 554bec5f..90abcc34 100644 --- a/migrations/0xx.landuse.down.sql +++ b/migrations/0xx.landuse.down.sql @@ -12,7 +12,7 @@ ALTER TABLE buildings DROP COLUMN IF EXISTS current_landuse_class; ALTER TABLE buildings DROP COLUMN IF EXISTS current_landuse_order; --Land use class, group and order will be stored in a new table -DROP TABLE building_landuse IF EXISTS CASCADE; +DROP TABLE IF EXISTS building_landuse CASCADE; --=========================================== -- diff --git a/migrations/0xx.landuse.up.sql b/migrations/0xx.landuse.up.sql index d63460fe..a7f2f54b 100644 --- a/migrations/0xx.landuse.up.sql +++ b/migrations/0xx.landuse.up.sql @@ -27,4 +27,4 @@ REFERENCES bulk_sources.nlud_classification_order_group ("level"); ALTER TABLE buildings ADD COLUMN IF NOT EXISTS original_landuse_class text ARRAY[250]; -- Land use order, singular. Client and db constrained. -ALTER TABLE buildings ADD COLUMN IF NOT EXISTS original_landuse_order; +ALTER TABLE buildings ADD COLUMN IF NOT EXISTS original_landuse_order text;