summaryrefslogtreecommitdiff
path: root/util/updates/2020-09-05-notifications.sql
diff options
context:
space:
mode:
Diffstat (limited to 'util/updates/2020-09-05-notifications.sql')
-rw-r--r--util/updates/2020-09-05-notifications.sql6
1 files changed, 6 insertions, 0 deletions
diff --git a/util/updates/2020-09-05-notifications.sql b/util/updates/2020-09-05-notifications.sql
index 864824e3..1c3e6bd6 100644
--- a/util/updates/2020-09-05-notifications.sql
+++ b/util/updates/2020-09-05-notifications.sql
@@ -6,5 +6,11 @@ ALTER TABLE notifications ALTER COLUMN c_byuser DROP NOT NULL;
DROP TYPE notification_ltype;
UPDATE notifications SET c_byuser = NULL WHERE c_byuser = 0;
+ALTER TABLE users ADD COLUMN notify_post boolean NOT NULL DEFAULT true;
+ALTER TABLE users ADD COLUMN notify_comment boolean NOT NULL DEFAULT true;
+ALTER TYPE notification_ntype ADD VALUE 'post' AFTER 'announce';
+ALTER TYPE notification_ntype ADD VALUE 'comment' AFTER 'post';
+
\i sql/func.sql
\i sql/triggers.sql
+\i sql/perms.sql