602449cf58
Copied code from Current Land Use (Land Use Category) to automatically calculate the Land Use Order for Original Land Use and then visualise it on the map. #1219
9 lines
367 B
SQL
9 lines
367 B
SQL
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS typology_original_use_order text;
|
|
|
|
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS typology_original_use_verified BOOLEAN NOT NULL DEFAULT FALSE;
|
|
|
|
UPDATE buildings as b
|
|
SET typology_original_use_verified = TRUE
|
|
FROM building_verification as v
|
|
WHERE b.building_id = v.building_id
|
|
AND v.attribute = 'current_landuse_group'; |