2022-09-20 04:34:22 -04:00
|
|
|
-- this type of links is expected:
|
|
|
|
-- 'https://historicengland.org.uk/listing/the-list/list-entry/1080446?section=official-list-entry'
|
|
|
|
|
|
|
|
UPDATE buildings
|
|
|
|
SET planning_local_list_url = 'identified as listed: please replace with link'
|
|
|
|
WHERE planning_local_list_url = ''
|
|
|
|
AND planning_in_local_list;
|
|
|
|
|
2022-09-23 10:03:08 -04:00
|
|
|
--no need to store both id and link that can be derived from it
|
2022-09-20 04:34:22 -04:00
|
|
|
ALTER TABLE buildings DROP COLUMN IF EXISTS planning_nhle_link;
|
|
|
|
|
|
|
|
--changed into URL
|
|
|
|
ALTER TABLE buildings DROP COLUMN IF EXISTS planning_in_apa;
|
|
|
|
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS planning_in_apa_url VARCHAR DEFAULT '';
|
|
|
|
|
|
|
|
ALTER TABLE buildings DROP COLUMN IF EXISTS planning_heritage_at_risk_id;
|
|
|
|
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS planning_heritage_at_risk_url VARCHAR DEFAULT '';
|
|
|
|
|
2022-09-29 08:40:06 -04:00
|
|
|
|
|
|
|
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS planning_in_conservation_area_id VARCHAR DEFAULT '';
|
2022-09-20 04:34:22 -04:00
|
|
|
ALTER TABLE buildings DROP COLUMN IF EXISTS planning_in_conservation_area;
|
|
|
|
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS planning_in_conservation_area_url VARCHAR DEFAULT '';
|
|
|
|
|
|
|
|
--fully removed
|
|
|
|
ALTER TABLE buildings DROP COLUMN IF EXISTS planning_in_glher;
|
|
|
|
ALTER TABLE buildings DROP COLUMN IF EXISTS planning_apa_name;
|
|
|
|
ALTER TABLE buildings DROP COLUMN IF EXISTS planning_apa_tier;
|
|
|
|
ALTER TABLE buildings DROP COLUMN IF EXISTS planning_in_local_list;
|
|
|
|
ALTER TABLE buildings DROP COLUMN IF EXISTS planning_in_historic_area_assessment;
|