Add global comment notification setting

Add a configuration option to the account edit page that allows for
globally enabling/disabling package base comment notifications.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2015-11-10 19:49:13 +01:00
parent 3412de21d3
commit aa5e58db81
7 changed files with 46 additions and 11 deletions

View file

@ -47,3 +47,10 @@ ALTER TABLE PackageBases MODIFY COLUMN FlaggerComment TEXT NOT NULL DEFAULT '';
----
ALTER TABLE CommentNotify RENAME TO PackageNotifications;
----
8. Add new columns to store notification settings:
----
ALTER TABLE Users
ADD COLUMN CommentNotify TINYINT(1) NOT NULL DEFAULT 1;
----