aboutsummaryrefslogtreecommitdiffstats
path: root/db/schema_0006-alter_problem_state.sql
blob: 1fdd30cb211c4a2ff360632aa8e429c08c6a4e60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 = 'will not fix'
        or state = 'fixed'
        or state = 'fixed - council'
        or state = 'fixed - user'
        or state = 'hidden'
        or state = 'partial'
    );

commit;