Mercurial > ~dholland > hg > swallowtail > index.cgi
annotate database/schema/config.sql @ 14:dfd62aad74f4
note that the test environment hasn't been merged into this tree yet.
(from last Feb.)
author | David A. Holland |
---|---|
date | Mon, 03 Sep 2012 13:41:57 -0400 |
parents | d42c0db81e28 |
children | 68a4f2d8930e |
rev | line source |
---|---|
8
68cc276ac118
SQL material from old tree, split up for accessibility.
David A. Holland
parents:
diff
changeset
|
1 -- |
68cc276ac118
SQL material from old tree, split up for accessibility.
David A. Holland
parents:
diff
changeset
|
2 -- These tables record the allowable values for the various |
68cc276ac118
SQL material from old tree, split up for accessibility.
David A. Holland
parents:
diff
changeset
|
3 -- enumerated settings. |
68cc276ac118
SQL material from old tree, split up for accessibility.
David A. Holland
parents:
diff
changeset
|
4 -- |
68cc276ac118
SQL material from old tree, split up for accessibility.
David A. Holland
parents:
diff
changeset
|
5 -- Each entry has the value string (the name), a description field, |
68cc276ac118
SQL material from old tree, split up for accessibility.
David A. Holland
parents:
diff
changeset
|
6 -- and a flag to mark the entry obsolete. Obsolete values are still |
68cc276ac118
SQL material from old tree, split up for accessibility.
David A. Holland
parents:
diff
changeset
|
7 -- allowed to exist in the database, but new uses are not permitted. |
68cc276ac118
SQL material from old tree, split up for accessibility.
David A. Holland
parents:
diff
changeset
|
8 -- |
68cc276ac118
SQL material from old tree, split up for accessibility.
David A. Holland
parents:
diff
changeset
|
9 |
11 | 10 ---- These are now handled in classify.sql |
11 -- | |
12 -- -- Severity ratings of bugs | |
13 -- CREATE TABLE severities ( | |
14 -- name text primary key, | |
15 -- obsolete boolean not null, | |
16 -- description text | |
17 -- ) | |
18 -- WITHOUT OIDS; | |
19 -- | |
20 -- -- Priority ratings of bugs | |
21 -- CREATE TABLE priorities ( | |
22 -- name text primary key, | |
23 -- obsolete boolean not null, | |
24 -- description text | |
25 -- ) | |
26 -- WITHOUT OIDS; | |
27 -- | |
28 -- -- Types of bugs (sw-bug, doc-bug, etc.) | |
29 -- CREATE TABLE classes ( | |
30 -- name text primary key, | |
31 -- obsolete boolean not null, | |
32 -- description text | |
33 -- ) WITHOUT OIDS; | |
34 -- | |
35 -- -- Categories of bugs (bin, kern, pkg, etc.) | |
36 -- CREATE TABLE categories ( | |
37 -- name text primary key, | |
38 -- obsolete boolean not null, | |
39 -- description text | |
40 -- ) WITHOUT OIDS; | |
8
68cc276ac118
SQL material from old tree, split up for accessibility.
David A. Holland
parents:
diff
changeset
|
41 |
68cc276ac118
SQL material from old tree, split up for accessibility.
David A. Holland
parents:
diff
changeset
|
42 |
10
1720f45dd495
Replace insane handling of states with something more likely workable.
David A. Holland
parents:
8
diff
changeset
|
43 -- States of bugs |
1720f45dd495
Replace insane handling of states with something more likely workable.
David A. Holland
parents:
8
diff
changeset
|
44 -- |
1720f45dd495
Replace insane handling of states with something more likely workable.
David A. Holland
parents:
8
diff
changeset
|
45 -- The additional booleans govern the semantics of the defined states. |
1720f45dd495
Replace insane handling of states with something more likely workable.
David A. Holland
parents:
8
diff
changeset
|
46 -- closed resolved (one way or another) |
1720f45dd495
Replace insane handling of states with something more likely workable.
David A. Holland
parents:
8
diff
changeset
|
47 -- nagresponsible the "responsible" users should get nag-mail |
1720f45dd495
Replace insane handling of states with something more likely workable.
David A. Holland
parents:
8
diff
changeset
|
48 -- nagsubmitter the "submitter" users should get nag-mail |
1720f45dd495
Replace insane handling of states with something more likely workable.
David A. Holland
parents:
8
diff
changeset
|
49 -- |
1720f45dd495
Replace insane handling of states with something more likely workable.
David A. Holland
parents:
8
diff
changeset
|
50 -- It is reasonable for multiple states to have the same settings; |
1720f45dd495
Replace insane handling of states with something more likely workable.
David A. Holland
parents:
8
diff
changeset
|
51 -- such states presumably mean different things in ways the database |
1720f45dd495
Replace insane handling of states with something more likely workable.
David A. Holland
parents:
8
diff
changeset
|
52 -- doesn't need to know about. |
1720f45dd495
Replace insane handling of states with something more likely workable.
David A. Holland
parents:
8
diff
changeset
|
53 -- |
1720f45dd495
Replace insane handling of states with something more likely workable.
David A. Holland
parents:
8
diff
changeset
|
54 -- For example: "open" might be defined as |
1720f45dd495
Replace insane handling of states with something more likely workable.
David A. Holland
parents:
8
diff
changeset
|
55 -- ("open", false, "bug is unresolved", false, true, false) |
1720f45dd495
Replace insane handling of states with something more likely workable.
David A. Holland
parents:
8
diff
changeset
|
56 -- and "feedback" as |
1720f45dd495
Replace insane handling of states with something more likely workable.
David A. Holland
parents:
8
diff
changeset
|
57 -- ("feedback", false, "awaiting submitter feedback", false, false, true) |
1720f45dd495
Replace insane handling of states with something more likely workable.
David A. Holland
parents:
8
diff
changeset
|
58 -- |
1720f45dd495
Replace insane handling of states with something more likely workable.
David A. Holland
parents:
8
diff
changeset
|
59 CREATE TABLE states ( |
1720f45dd495
Replace insane handling of states with something more likely workable.
David A. Holland
parents:
8
diff
changeset
|
60 name text primary key, |
1720f45dd495
Replace insane handling of states with something more likely workable.
David A. Holland
parents:
8
diff
changeset
|
61 obsolete boolean not null, |
1720f45dd495
Replace insane handling of states with something more likely workable.
David A. Holland
parents:
8
diff
changeset
|
62 description text , |
1720f45dd495
Replace insane handling of states with something more likely workable.
David A. Holland
parents:
8
diff
changeset
|
63 closed boolean not null, |
1720f45dd495
Replace insane handling of states with something more likely workable.
David A. Holland
parents:
8
diff
changeset
|
64 nagresponsible boolean not null, |
1720f45dd495
Replace insane handling of states with something more likely workable.
David A. Holland
parents:
8
diff
changeset
|
65 nagsubmitter boolean not null |
1720f45dd495
Replace insane handling of states with something more likely workable.
David A. Holland
parents:
8
diff
changeset
|
66 ) WITHOUT OIDS; |