limit current_landuse_verified to the correct attribute

This commit is contained in:
Ed Chalstrey 2022-05-05 15:45:20 +01:00
parent 8b761b8ddc
commit 0e58f0ccca

View File

@ -11,4 +11,5 @@ ALTER TABLE buildings ADD COLUMN IF NOT EXISTS current_landuse_verified BOOLEAN
UPDATE buildings as b UPDATE buildings as b
SET current_landuse_verified = TRUE SET current_landuse_verified = TRUE
FROM building_verification as v FROM building_verification as v
WHERE b.building_id = v.building_id; WHERE b.building_id = v.building_id
AND v.attribute = 'current_landuse_group';