mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 18:26:32 +02:00
[ticket/11103] Move is_enabled to a separate table for better performance
PHPBB3-11103
This commit is contained in:
@@ -751,6 +751,24 @@ CREATE INDEX [class_left_id] ON [phpbb_modules]([module_class], [left_id]) ON [
|
||||
GO
|
||||
|
||||
|
||||
/*
|
||||
Table: 'phpbb_notification_types'
|
||||
*/
|
||||
CREATE TABLE [phpbb_notification_types] (
|
||||
[notification_type] [varchar] (255) DEFAULT ('') NOT NULL ,
|
||||
[notification_type_enabled] [int] DEFAULT (1) NOT NULL
|
||||
) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
ALTER TABLE [phpbb_notification_types] WITH NOCHECK ADD
|
||||
CONSTRAINT [PK_phpbb_notification_types] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[notification_type],
|
||||
[notification_type_enabled]
|
||||
) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
|
||||
/*
|
||||
Table: 'phpbb_notifications'
|
||||
*/
|
||||
@@ -761,7 +779,6 @@ CREATE TABLE [phpbb_notifications] (
|
||||
[item_parent_id] [int] DEFAULT (0) NOT NULL ,
|
||||
[user_id] [int] DEFAULT (0) NOT NULL ,
|
||||
[unread] [int] DEFAULT (1) NOT NULL ,
|
||||
[is_enabled] [int] DEFAULT (1) NOT NULL ,
|
||||
[time] [int] DEFAULT (1) NOT NULL ,
|
||||
[data] [varchar] (4000) DEFAULT ('') NOT NULL
|
||||
) ON [PRIMARY]
|
||||
@@ -1528,15 +1545,6 @@ ALTER TABLE [phpbb_user_notifications] WITH NOCHECK ADD
|
||||
) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
CREATE INDEX [it] ON [phpbb_user_notifications]([item_type]) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
CREATE INDEX [uid] ON [phpbb_user_notifications]([user_id]) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
CREATE INDEX [no] ON [phpbb_user_notifications]([notify]) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
|
||||
/*
|
||||
Table: 'phpbb_user_group'
|
||||
|
Reference in New Issue
Block a user