mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/11103] Create schema files with notification tables
PHPBB3-11103
This commit is contained in:
@@ -430,6 +430,26 @@ CREATE TABLE phpbb_modules (
|
||||
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
|
||||
|
||||
|
||||
# Table: 'phpbb_notifications'
|
||||
CREATE TABLE phpbb_notifications (
|
||||
notification_id mediumint(8) UNSIGNED NOT NULL auto_increment,
|
||||
item_type varchar(25) DEFAULT '' NOT NULL,
|
||||
item_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
item_parent_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
unread tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
|
||||
time int(11) UNSIGNED DEFAULT '1' NOT NULL,
|
||||
data text NOT NULL,
|
||||
PRIMARY KEY (notification_id),
|
||||
KEY item_type (item_type),
|
||||
KEY item_id (item_id),
|
||||
KEY item_pid (item_parent_id),
|
||||
KEY user_id (user_id),
|
||||
KEY time (time),
|
||||
KEY unread (unread)
|
||||
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
|
||||
|
||||
|
||||
# Table: 'phpbb_poll_options'
|
||||
CREATE TABLE phpbb_poll_options (
|
||||
poll_option_id tinyint(4) DEFAULT '0' NOT NULL,
|
||||
@@ -849,6 +869,18 @@ CREATE TABLE phpbb_topics_watch (
|
||||
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
|
||||
|
||||
|
||||
# Table: 'phpbb_user_notifications'
|
||||
CREATE TABLE phpbb_user_notifications (
|
||||
item_type varchar(25) DEFAULT '' NOT NULL,
|
||||
item_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
method varchar(25) DEFAULT '' NOT NULL,
|
||||
PRIMARY KEY (item_type, item_id, user_id, method),
|
||||
KEY it (item_type),
|
||||
KEY uid (user_id)
|
||||
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
|
||||
|
||||
|
||||
# Table: 'phpbb_user_group'
|
||||
CREATE TABLE phpbb_user_group (
|
||||
group_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
|
Reference in New Issue
Block a user