WIP for #362
This commit is contained in:
parent
695bd6c936
commit
881f8512de
12
migrations/013.team.down.sql
Normal file
12
migrations/013.team.down.sql
Normal 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
|
18
migrations/014.team.up.sql
Normal file
18
migrations/014.team.up.sql
Normal 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';
|
Loading…
Reference in New Issue
Block a user