diff options
author | Yorhel <git@yorhel.nl> | 2010-02-05 10:24:44 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2010-02-05 10:24:44 +0100 |
commit | b541d72849cd859580e7e6d7232165c92aa3a40b (patch) | |
tree | 2a6d3c47b4679387d89488fcd23ec9833c963155 /util/sql/all.sql | |
parent | 004d60b64d80506944fd069c89c589302b5ae313 (diff) |
Notifications: Added 'announce' notification
This one is also configurable, but mainly because I want to avoid
generating several thousands of notifications for a single action...
Diffstat (limited to 'util/sql/all.sql')
-rw-r--r-- | util/sql/all.sql | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/sql/all.sql b/util/sql/all.sql index 5bd314f5..9a9eace0 100644 --- a/util/sql/all.sql +++ b/util/sql/all.sql @@ -11,7 +11,7 @@ CREATE TYPE dbentry_type AS ENUM ('v', 'r', 'p'); CREATE TYPE edit_rettype AS (iid integer, cid integer, rev integer); CREATE TYPE language AS ENUM('cs', 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja', 'ko', 'nl', 'no', 'pl', 'pt', 'ru', 'sk', 'sv', 'tr', 'vi', 'zh'); CREATE TYPE medium AS ENUM ('cd', 'dvd', 'gdr', 'blr', 'flp', 'mrt', 'mem', 'umd', 'nod', 'in', 'otc'); -CREATE TYPE notification_ntype AS ENUM ('pm', 'dbdel', 'listdel', 'dbedit'); +CREATE TYPE notification_ntype AS ENUM ('pm', 'dbdel', 'listdel', 'dbedit', 'announce'); CREATE TYPE notification_ltype AS ENUM ('v', 'r', 'p', 't'); CREATE TYPE producer_relation AS ENUM ('old', 'new', 'sub', 'par', 'imp', 'ipa', 'spa', 'ori'); CREATE TYPE release_type AS ENUM ('complete', 'partial', 'trial'); @@ -72,6 +72,7 @@ CREATE TRIGGER notify_listdel AFTER UPDATE ON releases 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(); +CREATE TRIGGER notify_announce AFTER INSERT ON threads_posts FOR EACH ROW EXECUTE PROCEDURE notify_announce(); -- Sequences used for ID generation of items not in the DB |