Mercurial > ~dholland > hg > swallowtail > index.cgi
annotate database/schema/admin.sql @ 53:62d82881799f
Update python versions to probe.
author | David A. Holland |
---|---|
date | Sat, 02 Apr 2022 21:15:27 -0400 |
parents | 812c956dd0e9 |
children | 36d91dfe017f |
rev | line source |
---|---|
43 | 1 -- |
2 -- Queue of administrative requests. | |
3 -- | |
4 -- The following things appear in the admin queue: | |
5 -- * comments filed on locked PRs | |
6 -- * bounce mail (for feedback messages, for other messages) | |
7 -- * junk mail (unrecognized incoming mail) | |
8 -- | |
9 -- These all are associated with incoming messages and refer to the | |
10 -- rawmail table. The pr and user fields are not null if we can figure | |
11 -- out what it's about, which we sometimes can but often can't. | |
12 -- | |
13 | |
14 CREATE TABLE adminmailtypes ( | |
15 type text primary key, | |
16 desc text | |
17 ) | |
18 WITHOUT OIDS; | |
19 | |
20 -- this is not configurable as the logic for recognizing these is open-coded | |
21 -- XXX should probably use an enum type for this instead | |
44
812c956dd0e9
Add another admin queue type for comments on nonexistent PRs.
David A. Holland
parents:
43
diff
changeset
|
22 INSERT INTO adminmailtypes VALUES ('locked', 'Comments on locked PRs'); |
812c956dd0e9
Add another admin queue type for comments on nonexistent PRs.
David A. Holland
parents:
43
diff
changeset
|
23 INSERT INTO adminmailtypes VALUES ('nonexistent', 'Comments on nonexistent PRs'); |
812c956dd0e9
Add another admin queue type for comments on nonexistent PRs.
David A. Holland
parents:
43
diff
changeset
|
24 INSERT INTO adminmailtypes VALUES ('fbounces', 'Feedback nag-mail bounces'); |
812c956dd0e9
Add another admin queue type for comments on nonexistent PRs.
David A. Holland
parents:
43
diff
changeset
|
25 INSERT INTO adminmailtypes VALUES ('rbounces', 'Responsible nag-mail bounces'); |
812c956dd0e9
Add another admin queue type for comments on nonexistent PRs.
David A. Holland
parents:
43
diff
changeset
|
26 INSERT INTO adminmailtypes VALUES ('bounces', 'Other bounces'); |
812c956dd0e9
Add another admin queue type for comments on nonexistent PRs.
David A. Holland
parents:
43
diff
changeset
|
27 INSERT INTO adminmailtypes VALUES ('junk', 'Unrecognized mail traffic'); |
43 | 28 |
29 CREATE TABLE adminmailqueue ( | |
30 rawmsg bigint not null references rawmail, | |
31 type text not null references adminmailtypes, | |
32 pr bigint null references PRs, | |
33 user bigint null references users | |
34 ) | |
35 WITHOUT OIDS; |