Readies #363 for launch

This commit is contained in:
Dominic H 2019-09-27 14:47:16 +01:00
parent 4a7eb350f2
commit 97d47d54ac

View File

@ -0,0 +1,19 @@
--Original building use, this is same NLUD fields as current building use
ALTER TABLE buildings
ADD COLUMN IF NOT EXISTS original_building_use;
-- Building attachment, ENUM: Detached, Semi-detached, End-Terrace, Mid-Terrace
CREATE TYPE building_attachment_form
AS ENUM ('Deatched',
'Semi-Detached',
'End-Terrace',
'Mid-Terrace',
'Unknown');
ALTER TABLE buildings
ADD COLUMN IF NOT EXISTS building_attachment_form building_attachment_form DEFAULT 'Unknown';
-- [Disabled for launch] Date of change of use
-- This needs to pair with demolition
ALTER TABLE buildings
ADD COLUMN IF NOT EXISTS date_change_building_use smallint;