colouring-montreal/migrations/014.team.up.sql

19 lines
495 B
MySQL
Raw Normal View History

2019-08-15 10:08:02 -04:00
-- 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';