mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/11103] data -> notification_data
PHPBB3-11103
This commit is contained in:
@@ -1200,7 +1200,7 @@ function database_update_info()
|
||||
'notification_read' => array('BOOL', 0),
|
||||
'is_enabled' => array('BOOL', 1),
|
||||
'notification_time' => array('TIMESTAMP', 1),
|
||||
'data' => array('TEXT_UNI', ''),
|
||||
'notification_data' => array('TEXT_UNI', ''),
|
||||
),
|
||||
'PRIMARY_KEY' => 'notification_id',
|
||||
'KEYS' => array(
|
||||
|
@@ -636,7 +636,7 @@ CREATE TABLE phpbb_notifications (
|
||||
user_id INTEGER DEFAULT 0 NOT NULL,
|
||||
notification_read INTEGER DEFAULT 0 NOT NULL,
|
||||
notification_time INTEGER DEFAULT 1 NOT NULL,
|
||||
data BLOB SUB_TYPE TEXT CHARACTER SET UTF8 DEFAULT '' NOT NULL
|
||||
notification_data BLOB SUB_TYPE TEXT CHARACTER SET UTF8 DEFAULT '' NOT NULL
|
||||
);;
|
||||
|
||||
ALTER TABLE phpbb_notifications ADD PRIMARY KEY (notification_id);;
|
||||
|
@@ -780,7 +780,7 @@ CREATE TABLE [phpbb_notifications] (
|
||||
[user_id] [int] DEFAULT (0) NOT NULL ,
|
||||
[notification_read] [int] DEFAULT (0) NOT NULL ,
|
||||
[notification_time] [int] DEFAULT (1) NOT NULL ,
|
||||
[data] [varchar] (4000) DEFAULT ('') NOT NULL
|
||||
[notification_data] [varchar] (4000) DEFAULT ('') NOT NULL
|
||||
) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
|
@@ -447,7 +447,7 @@ CREATE TABLE phpbb_notifications (
|
||||
user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
notification_read tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
notification_time int(11) UNSIGNED DEFAULT '1' NOT NULL,
|
||||
data blob NOT NULL,
|
||||
notification_data blob NOT NULL,
|
||||
PRIMARY KEY (notification_id),
|
||||
KEY item_ident (item_type, item_id),
|
||||
KEY user (user_id, notification_read)
|
||||
|
@@ -447,7 +447,7 @@ CREATE TABLE phpbb_notifications (
|
||||
user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
notification_read tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
notification_time int(11) UNSIGNED DEFAULT '1' NOT NULL,
|
||||
data text NOT NULL,
|
||||
notification_data text NOT NULL,
|
||||
PRIMARY KEY (notification_id),
|
||||
KEY item_ident (item_type, item_id),
|
||||
KEY user (user_id, notification_read)
|
||||
|
@@ -862,7 +862,7 @@ CREATE TABLE phpbb_notifications (
|
||||
user_id number(8) DEFAULT '0' NOT NULL,
|
||||
notification_read number(1) DEFAULT '0' NOT NULL,
|
||||
notification_time number(11) DEFAULT '1' NOT NULL,
|
||||
data clob DEFAULT '' ,
|
||||
notification_data clob DEFAULT '' ,
|
||||
CONSTRAINT pk_phpbb_notifications PRIMARY KEY (notification_id)
|
||||
)
|
||||
/
|
||||
|
@@ -619,7 +619,7 @@ CREATE TABLE phpbb_notifications (
|
||||
user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
|
||||
notification_read INT2 DEFAULT '0' NOT NULL CHECK (notification_read >= 0),
|
||||
notification_time INT4 DEFAULT '1' NOT NULL CHECK (notification_time >= 0),
|
||||
data varchar(4000) DEFAULT '' NOT NULL,
|
||||
notification_data varchar(4000) DEFAULT '' NOT NULL,
|
||||
PRIMARY KEY (notification_id)
|
||||
);
|
||||
|
||||
|
@@ -434,7 +434,7 @@ CREATE TABLE phpbb_notifications (
|
||||
user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
notification_read INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
notification_time INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
||||
data text(65535) NOT NULL DEFAULT ''
|
||||
notification_data text(65535) NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_notifications_item_ident ON phpbb_notifications (item_type, item_id);
|
||||
|
Reference in New Issue
Block a user