From 0e58f0ccca43438fb59676896ddb24475ba3f48a Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Thu, 5 May 2022 15:45:20 +0100 Subject: [PATCH] limit current_landuse_verified to the correct attribute --- migrations/028.landuse-source.up.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/migrations/028.landuse-source.up.sql b/migrations/028.landuse-source.up.sql index 01b47257..bc6925e3 100644 --- a/migrations/028.landuse-source.up.sql +++ b/migrations/028.landuse-source.up.sql @@ -11,4 +11,5 @@ ALTER TABLE buildings ADD COLUMN IF NOT EXISTS current_landuse_verified BOOLEAN UPDATE buildings as b SET current_landuse_verified = TRUE FROM building_verification as v -WHERE b.building_id = v.building_id; \ No newline at end of file +WHERE b.building_id = v.building_id +AND v.attribute = 'current_landuse_group'; \ No newline at end of file