aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/schemas/mysql_40_schema.sql
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/install/schemas/mysql_40_schema.sql')
-rw-r--r--phpBB/install/schemas/mysql_40_schema.sql34
1 files changed, 34 insertions, 0 deletions
diff --git a/phpBB/install/schemas/mysql_40_schema.sql b/phpBB/install/schemas/mysql_40_schema.sql
index e71afcd5b3..fd7f9a6025 100644
--- a/phpBB/install/schemas/mysql_40_schema.sql
+++ b/phpBB/install/schemas/mysql_40_schema.sql
@@ -430,6 +430,28 @@ CREATE TABLE phpbb_modules (
);
+# Table: 'phpbb_notifications'
+CREATE TABLE phpbb_notifications (
+ notification_id mediumint(8) UNSIGNED NOT NULL auto_increment,
+ item_type varbinary(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,
+ is_disabled tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
+ time int(11) UNSIGNED DEFAULT '1' NOT NULL,
+ data blob 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),
+ KEY is_disabled (is_disabled)
+);
+
+
# Table: 'phpbb_poll_options'
CREATE TABLE phpbb_poll_options (
poll_option_id tinyint(4) DEFAULT '0' NOT NULL,
@@ -849,6 +871,18 @@ CREATE TABLE phpbb_topics_watch (
);
+# Table: 'phpbb_user_notifications'
+CREATE TABLE phpbb_user_notifications (
+ item_type varbinary(25) DEFAULT '' NOT NULL,
+ item_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ method varbinary(25) DEFAULT '' NOT NULL,
+ PRIMARY KEY (item_type, item_id, user_id, method),
+ KEY it (item_type),
+ KEY uid (user_id)
+);
+
+
# Table: 'phpbb_user_group'
CREATE TABLE phpbb_user_group (
group_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,