From aa138198d83f6acf57d46a802d0feb682d126be6 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Thu, 5 May 2022 12:00:08 +0100 Subject: [PATCH] update buildings table to have current_landuse_verified bool --- migrations/028.landuse-source.down.sql | 2 ++ migrations/028.landuse-source.up.sql | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/migrations/028.landuse-source.down.sql b/migrations/028.landuse-source.down.sql index 1c6f7c09..d9ededda 100644 --- a/migrations/028.landuse-source.down.sql +++ b/migrations/028.landuse-source.down.sql @@ -3,3 +3,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; + +ALTER TABLE buildings DROP COLUMN IF NOT EXISTS current_landuse_verified; diff --git a/migrations/028.landuse-source.up.sql b/migrations/028.landuse-source.up.sql index 3dbd9557..4a295ff0 100644 --- a/migrations/028.landuse-source.up.sql +++ b/migrations/028.landuse-source.up.sql @@ -4,4 +4,6 @@ ALTER TABLE buildings ADD CONSTRAINT buildings_current_landuse_source_len CHECK 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[]; \ No newline at end of file +ALTER TABLE buildings ADD COLUMN IF NOT EXISTS current_landuse_link text[]; + +ALTER TABLE buildings ADD COLUMN IF NOT EXISTS current_landuse_verified BOOLEAN NOT NULL DEFAULT FALSE; \ No newline at end of file