diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/downgrade_0055---0054.sql | 6 | ||||
-rw-r--r-- | db/schema.sql | 1 | ||||
-rw-r--r-- | db/schema_0055-add-default-to-reponsepriority.sql | 5 |
3 files changed, 12 insertions, 0 deletions
diff --git a/db/downgrade_0055---0054.sql b/db/downgrade_0055---0054.sql new file mode 100644 index 000000000..a38d74ded --- /dev/null +++ b/db/downgrade_0055---0054.sql @@ -0,0 +1,6 @@ +BEGIN; + +ALTER TABLE response_priorities DROP COLUMN is_default; + +COMMIT; + diff --git a/db/schema.sql b/db/schema.sql index fedab2b9d..f428ff59d 100644 --- a/db/schema.sql +++ b/db/schema.sql @@ -144,6 +144,7 @@ CREATE TABLE response_priorities ( name text not null, description text, external_id text, + is_default boolean not null default 'f', unique(body_id, name) ); diff --git a/db/schema_0055-add-default-to-reponsepriority.sql b/db/schema_0055-add-default-to-reponsepriority.sql new file mode 100644 index 000000000..0f8b72e13 --- /dev/null +++ b/db/schema_0055-add-default-to-reponsepriority.sql @@ -0,0 +1,5 @@ +BEGIN; + +ALTER TABLE response_priorities ADD is_default boolean not null default 'f'; + +COMMIT; |