diff options
author | Yorhel <git@yorhel.nl> | 2010-02-05 09:28:56 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2010-02-05 09:28:56 +0100 |
commit | 004d60b64d80506944fd069c89c589302b5ae313 (patch) | |
tree | dcc525169fe60e8ff56d00417d23fe695f649197 /util/updates | |
parent | 3cd6626fefaed0461d27377e2a349871c49e7154 (diff) |
Notifications: Added 'dbedit' notification
And added a settings window where you can disable this notification,
which is something you really want to do if you're an active
contributor...
Diffstat (limited to 'util/updates')
-rw-r--r-- | util/updates/update_2.11.sql | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/util/updates/update_2.11.sql b/util/updates/update_2.11.sql index d05d18c0..9184dec9 100644 --- a/util/updates/update_2.11.sql +++ b/util/updates/update_2.11.sql @@ -1,6 +1,6 @@ -CREATE TYPE notification_ntype AS ENUM ('pm', 'dbdel', 'listdel'); +CREATE TYPE notification_ntype AS ENUM ('pm', 'dbdel', 'listdel', 'dbedit'); CREATE TYPE notification_ltype AS ENUM ('v', 'r', 'p', 't'); CREATE TABLE notifications ( @@ -27,6 +27,8 @@ INSERT INTO notifications (uid, date, ntype, ltype, iid, subid, c_title, c_byuse -- ...and drop the now unused lastread column ALTER TABLE threads_boards DROP COLUMN lastread; +ALTER TABLE users ADD COLUMN notify_dbedit boolean NOT NULL DEFAULT true; +UPDATE users SET notify_dbedit = false WHERE id IN(0,1); -- languages -> ENUM @@ -110,4 +112,7 @@ CREATE TRIGGER notify_dbdel AFTER UPDATE ON producers CREATE TRIGGER notify_dbdel AFTER UPDATE ON releases FOR EACH ROW EXECUTE PROCEDURE notify_dbdel(); CREATE TRIGGER notify_listdel AFTER UPDATE ON vn FOR EACH ROW EXECUTE PROCEDURE notify_listdel(); CREATE TRIGGER notify_listdel AFTER UPDATE ON releases FOR EACH ROW EXECUTE PROCEDURE notify_listdel(); +CREATE TRIGGER notify_dbedit AFTER UPDATE ON vn FOR EACH ROW EXECUTE PROCEDURE notify_dbedit(); +CREATE TRIGGER notify_dbedit AFTER UPDATE ON producers FOR EACH ROW EXECUTE PROCEDURE notify_dbedit(); +CREATE TRIGGER notify_dbedit AFTER UPDATE ON releases FOR EACH ROW EXECUTE PROCEDURE notify_dbedit(); |