This commit is contained in:
Dominic H 2019-08-15 15:08:02 +01:00 committed by Tom Russell
parent 695bd6c936
commit 881f8512de
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,12 @@
-- Remove team fields, update in paralell with adding new fields
-- Award or awards (may be multiple) stored as json b object
ALTER TABLE buildings DROP COLUMN IF EXISTS team_awards;
--TODO: Original building architect
--TODO : Original building engineer
--TODO : Original building contractor
--TODO : Original building developer

View File

@ -0,0 +1,18 @@
-- Remove team fields, update in paralell with adding new fields
-- Award or awards (may be multiple) any of stored as json b object
ALTER TABLE buildings DROP COLUMN IF EXISTS team_awards;
-- Building award, any of:
-- TBC might be table
CREATE TYPE team_awards
AS ENUM ('RIBA Gold mdeal',
'RIBA Sitrling prize',
'RIBA Regional award',
'The Civic Trust Award',
'Pass',
'None');
ALTER TABLE buildings
ADD COLUMN IF NOT EXISTS team_awards team_awards DEFAULT 'None';