diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2011-10-13 12:24:43 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2017-09-04 11:16:53 -0700 |
commit | 326a23aded279dedc8a4e6de64618f0fbee17bac (patch) | |
tree | a3444296e388ac65709dfac25490828fc8f433f1 /design | |
parent | 94f12b0a85feb8d8e6effb89021bf79a82174fce (diff) |
Changed the moderator schedule table to a view. Finished the exception iterator. Modified Post to only notify the next moderator. Need to add exception adding/removal.
Diffstat (limited to 'design')
-rw-r--r-- | design/database.sql | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/design/database.sql b/design/database.sql index 60b7006..b13fa39 100644 --- a/design/database.sql +++ b/design/database.sql @@ -94,12 +94,16 @@ CREATE TABLE page ( UNIQUE KEY(url) ); -CREATE TABLE moderator_schedule ( - position TINYINT UNSIGNED NOT NULL, - user_id INTEGER UNSIGNED NOT NULL, +-- CREATE TABLE moderator_schedule ( +-- position TINYINT UNSIGNED NOT NULL, +-- user_id INTEGER UNSIGNED NOT NULL, +-- +-- PRIMARY KEY(position, user_id) +-- ); - PRIMARY KEY(position, user_id) -); +CREATE VIEW moderator_schedule AS + SELECT id AS position, id AS user_id FROM user + WHERE notify=1; CREATE TABLE moderator_exceptions ( year INTEGER UNSIGNED NOT NULL, |