mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/11103] Move is_enabled to a separate table for better performance
PHPBB3-11103
This commit is contained in:
@@ -430,6 +430,14 @@ CREATE TABLE phpbb_modules (
|
||||
);
|
||||
|
||||
|
||||
# Table: 'phpbb_notification_types'
|
||||
CREATE TABLE phpbb_notification_types (
|
||||
notification_type varbinary(255) DEFAULT '' NOT NULL,
|
||||
notification_type_enabled tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
|
||||
PRIMARY KEY (notification_type, notification_type_enabled)
|
||||
);
|
||||
|
||||
|
||||
# Table: 'phpbb_notifications'
|
||||
CREATE TABLE phpbb_notifications (
|
||||
notification_id mediumint(8) UNSIGNED NOT NULL auto_increment,
|
||||
@@ -438,7 +446,6 @@ CREATE TABLE phpbb_notifications (
|
||||
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_enabled tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
|
||||
time int(11) UNSIGNED DEFAULT '1' NOT NULL,
|
||||
data blob NOT NULL,
|
||||
PRIMARY KEY (notification_id),
|
||||
@@ -875,10 +882,7 @@ CREATE TABLE phpbb_user_notifications (
|
||||
user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
method varbinary(255) DEFAULT '' NOT NULL,
|
||||
notify tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
|
||||
PRIMARY KEY (item_type, item_id, user_id, method),
|
||||
KEY it (item_type),
|
||||
KEY uid (user_id),
|
||||
KEY no (notify)
|
||||
PRIMARY KEY (item_type, item_id, user_id, method)
|
||||
);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user