diff options
author | Struan Donald <struan@exo.org.uk> | 2011-08-19 00:08:15 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-08-19 00:08:15 +0100 |
commit | a9a4fed583d7467c9c1f1fa56d42bcb75b4b488c (patch) | |
tree | 72941901b1bad732047bc6289139a387b049e6e8 /db/schema_0006-alter_problem_state.sql | |
parent | 302f5961f5da13e8124e8d2e91e52a29f141946f (diff) | |
parent | 61e6d5928be1bedb68607f8fa36f0d971711a3f8 (diff) |
Merge branch 'new_statuses'
Diffstat (limited to 'db/schema_0006-alter_problem_state.sql')
-rw-r--r-- | db/schema_0006-alter_problem_state.sql | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/db/schema_0006-alter_problem_state.sql b/db/schema_0006-alter_problem_state.sql new file mode 100644 index 000000000..6fada1eb8 --- /dev/null +++ b/db/schema_0006-alter_problem_state.sql @@ -0,0 +1,19 @@ +begin; + + ALTER TABLE problem DROP CONSTRAINT problem_state_check; + + ALTER TABLE problem ADD CONSTRAINT problem_state_check CHECK ( + state = 'unconfirmed' + or state = 'confirmed' + or state = 'investigating' + or state = 'planned' + or state = 'in progress' + or state = 'closed' + or state = 'fixed' + or state = 'fixed - council' + or state = 'fixed - user' + or state = 'hidden' + or state = 'partial' + ); + +commit; |