update buildings table to have current_landuse_verified bool

This commit is contained in:
Ed Chalstrey 2022-05-05 12:00:08 +01:00
parent 2025a286ed
commit aa138198d8
2 changed files with 5 additions and 1 deletions

View File

@ -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_source_detail;
ALTER TABLE buildings DROP COLUMN IF EXISTS current_landuse_link; ALTER TABLE buildings DROP COLUMN IF EXISTS current_landuse_link;
ALTER TABLE buildings DROP COLUMN IF NOT EXISTS current_landuse_verified;

View File

@ -5,3 +5,5 @@ ALTER TABLE buildings ADD COLUMN IF NOT EXISTS current_landuse_source_detail var
ALTER TABLE buildings ADD CONSTRAINT current_landuse_source_detail_len CHECK (length(current_landuse_source_detail) < 500); 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[]; 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;