add current_landuse_verified update to buildings

This commit is contained in:
Ed Chalstrey 2022-05-05 15:40:58 +01:00
parent adb4bfa904
commit 8b761b8ddc

View File

@ -6,4 +6,9 @@ ALTER TABLE buildings ADD CONSTRAINT current_landuse_source_detail_len CHECK (le
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;
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS current_landuse_verified BOOLEAN NOT NULL DEFAULT FALSE;
UPDATE buildings as b
SET current_landuse_verified = TRUE
FROM building_verification as v
WHERE b.building_id = v.building_id;