mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/11103] Set basic notifications to be enabled by default
Now, if there is no row for the user in the user_notifications table, the user will receive basic notifications. If the user wishes to not receive notifications, a row must be added with notify = 0. For other methods besides the basic (e.g. email, jabber) a row must still be added with notify = 1 for them to receive notifications PHPBB3-11103
This commit is contained in:
@@ -1240,13 +1240,15 @@ CREATE TABLE phpbb_user_notifications (
|
||||
item_type VARCHAR(255) CHARACTER SET NONE DEFAULT '' NOT NULL,
|
||||
item_id INTEGER DEFAULT 0 NOT NULL,
|
||||
user_id INTEGER DEFAULT 0 NOT NULL,
|
||||
method VARCHAR(255) CHARACTER SET NONE DEFAULT '' NOT NULL
|
||||
method VARCHAR(255) CHARACTER SET NONE DEFAULT '' NOT NULL,
|
||||
notify INTEGER DEFAULT 1 NOT NULL
|
||||
);;
|
||||
|
||||
ALTER TABLE phpbb_user_notifications ADD PRIMARY KEY (item_type, item_id, user_id, method);;
|
||||
|
||||
CREATE INDEX phpbb_user_notifications_it ON phpbb_user_notifications(item_type);;
|
||||
CREATE INDEX phpbb_user_notifications_uid ON phpbb_user_notifications(user_id);;
|
||||
CREATE INDEX phpbb_user_notifications_no ON phpbb_user_notifications(notify);;
|
||||
|
||||
# Table: 'phpbb_user_group'
|
||||
CREATE TABLE phpbb_user_group (
|
||||
|
Reference in New Issue
Block a user