Fix controls migration create type
This commit is contained in:
parent
8c6a86bbec
commit
56a14f641b
@ -21,7 +21,7 @@ ALTER TABLE buildings ADD COLUMN IF NOT EXISTS planning_list_id int DEFAULT null
|
|||||||
-- - World Heritage Site
|
-- - World Heritage Site
|
||||||
-- - Certificate of Immunity
|
-- - Certificate of Immunity
|
||||||
-- - Building Preservation Notice
|
-- - Building Preservation Notice
|
||||||
CREATE TYPE IF NOT EXISTS planning_list_cat AS ENUM (
|
CREATE TYPE planning_list_cat AS ENUM (
|
||||||
'Listed Building',
|
'Listed Building',
|
||||||
'Scheduled Monument',
|
'Scheduled Monument',
|
||||||
'Wreck',
|
'Wreck',
|
||||||
@ -38,7 +38,7 @@ ALTER TABLE buildings ADD COLUMN IF NOT EXISTS planning_list_cat planning_list_c
|
|||||||
-- - I
|
-- - I
|
||||||
-- - II*
|
-- - II*
|
||||||
-- - II
|
-- - II
|
||||||
CREATE TYPE IF NOT EXISTS planning_list_grade AS ENUM ('I', 'II*', 'II', 'None');
|
CREATE TYPE planning_list_grade AS ENUM ('I', 'II*', 'II', 'None');
|
||||||
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS planning_list_grade planning_list_grade DEFAULT 'None';
|
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS planning_list_grade planning_list_grade DEFAULT 'None';
|
||||||
|
|
||||||
-- Heritage at risk (bool, at-risk id)
|
-- Heritage at risk (bool, at-risk id)
|
||||||
|
Loading…
Reference in New Issue
Block a user