From 76def0022fd11801bfe1b9568de582114856deea Mon Sep 17 00:00:00 2001 From: Maciej Ziarkowski Date: Mon, 2 Dec 2019 12:53:38 +0000 Subject: [PATCH] Fix errors in landuse migrations --- migrations/0xx.landuse.down.sql | 2 +- migrations/0xx.landuse.up.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;