diff options
Diffstat (limited to 'db/schema.sql')
-rw-r--r-- | db/schema.sql | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/db/schema.sql b/db/schema.sql index 984ceb690..21fc3371a 100644 --- a/db/schema.sql +++ b/db/schema.sql @@ -287,6 +287,16 @@ create table comment ( cobrand_data text not null default '' check (cobrand_data ~* '^[a-z0-9]*$'), -- Extra data used in cobranded versions of the site mark_fixed boolean not null, mark_open boolean not null default 'f' + problem_state text check ( + problem_state = 'confirmed' + or problem_state = 'investigating' + or problem_state = 'planned' + or problem_state = 'in progress' + or problem_state = 'closed' + or problem_state = 'fixed' + or problem_state = 'fixed - council' + or problem_state = 'fixed - user' + ) -- other fields? one to indicate whether this was written by the council -- and should be highlighted in the display? ); |