mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 03:04:09 +02:00
[ticket/11103] Use the full class name as the item_type/method
This is going to require you recreate the db tables. PHPBB3-11103
This commit is contained in:
@@ -621,12 +621,12 @@ END;;
|
||||
# Table: 'phpbb_notifications'
|
||||
CREATE TABLE phpbb_notifications (
|
||||
notification_id INTEGER NOT NULL,
|
||||
item_type VARCHAR(25) CHARACTER SET NONE DEFAULT '' NOT NULL,
|
||||
item_type VARCHAR(255) CHARACTER SET NONE DEFAULT '' NOT NULL,
|
||||
item_id INTEGER DEFAULT 0 NOT NULL,
|
||||
item_parent_id INTEGER DEFAULT 0 NOT NULL,
|
||||
user_id INTEGER DEFAULT 0 NOT NULL,
|
||||
unread INTEGER DEFAULT 1 NOT NULL,
|
||||
is_disabled INTEGER DEFAULT 0 NOT NULL,
|
||||
is_enabled INTEGER DEFAULT 1 NOT NULL,
|
||||
time INTEGER DEFAULT 1 NOT NULL,
|
||||
data BLOB SUB_TYPE TEXT CHARACTER SET UTF8 DEFAULT '' NOT NULL
|
||||
);;
|
||||
@@ -639,7 +639,7 @@ CREATE INDEX phpbb_notifications_item_pid ON phpbb_notifications(item_parent_id)
|
||||
CREATE INDEX phpbb_notifications_user_id ON phpbb_notifications(user_id);;
|
||||
CREATE INDEX phpbb_notifications_time ON phpbb_notifications(time);;
|
||||
CREATE INDEX phpbb_notifications_unread ON phpbb_notifications(unread);;
|
||||
CREATE INDEX phpbb_notifications_is_disabled ON phpbb_notifications(is_disabled);;
|
||||
CREATE INDEX phpbb_notifications_is_enabled ON phpbb_notifications(is_enabled);;
|
||||
|
||||
CREATE GENERATOR phpbb_notifications_gen;;
|
||||
SET GENERATOR phpbb_notifications_gen TO 0;;
|
||||
@@ -1237,10 +1237,10 @@ CREATE INDEX phpbb_topics_watch_notify_stat ON phpbb_topics_watch(notify_status)
|
||||
|
||||
# Table: 'phpbb_user_notifications'
|
||||
CREATE TABLE phpbb_user_notifications (
|
||||
item_type VARCHAR(25) CHARACTER SET NONE DEFAULT '' NOT NULL,
|
||||
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(25) CHARACTER SET NONE DEFAULT '' NOT NULL
|
||||
method VARCHAR(255) CHARACTER SET NONE DEFAULT '' NOT NULL
|
||||
);;
|
||||
|
||||
ALTER TABLE phpbb_user_notifications ADD PRIMARY KEY (item_type, item_id, user_id, method);;
|
||||
|
Reference in New Issue
Block a user