From 56a14f641bc4d5280cfd91d4f1c0b6433955c4fb Mon Sep 17 00:00:00 2001 From: Tom Russell Date: Sat, 19 Jan 2019 19:44:28 +0000 Subject: [PATCH] Fix controls migration create type --- migrations/006.controls.up.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migrations/006.controls.up.sql b/migrations/006.controls.up.sql index 8c889287..154c1167 100644 --- a/migrations/006.controls.up.sql +++ b/migrations/006.controls.up.sql @@ -21,7 +21,7 @@ ALTER TABLE buildings ADD COLUMN IF NOT EXISTS planning_list_id int DEFAULT null -- - World Heritage Site -- - Certificate of Immunity -- - Building Preservation Notice -CREATE TYPE IF NOT EXISTS planning_list_cat AS ENUM ( +CREATE TYPE planning_list_cat AS ENUM ( 'Listed Building', 'Scheduled Monument', 'Wreck', @@ -38,7 +38,7 @@ ALTER TABLE buildings ADD COLUMN IF NOT EXISTS planning_list_cat planning_list_c -- - I -- - 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'; -- Heritage at risk (bool, at-risk id)