mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/11103] Remove Primary Key on user_notifications table
PHPBB3-11103
This commit is contained in:
parent
bd49942552
commit
b567e09630
9 changed files with 5 additions and 34 deletions
|
@ -1790,12 +1790,6 @@ function get_schema_struct()
|
||||||
'method' => array('VCHAR:255', ''),
|
'method' => array('VCHAR:255', ''),
|
||||||
'notify' => array('BOOL', 1),
|
'notify' => array('BOOL', 1),
|
||||||
),
|
),
|
||||||
'PRIMARY_KEY' => array(
|
|
||||||
'item_type',
|
|
||||||
'item_id',
|
|
||||||
'user_id',
|
|
||||||
'method',
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$schema_data['phpbb_user_group'] = array(
|
$schema_data['phpbb_user_group'] = array(
|
||||||
|
|
|
@ -1213,12 +1213,6 @@ function database_update_info()
|
||||||
'method' => array('VCHAR:255', ''),
|
'method' => array('VCHAR:255', ''),
|
||||||
'notify' => array('BOOL', 1),
|
'notify' => array('BOOL', 1),
|
||||||
),
|
),
|
||||||
'PRIMARY_KEY' => array(
|
|
||||||
'item_type',
|
|
||||||
'item_id',
|
|
||||||
'user_id',
|
|
||||||
'method',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'add_columns' => array(
|
'add_columns' => array(
|
||||||
|
|
|
@ -1252,8 +1252,6 @@ CREATE TABLE phpbb_user_notifications (
|
||||||
notify INTEGER DEFAULT 1 NOT NULL
|
notify INTEGER DEFAULT 1 NOT NULL
|
||||||
);;
|
);;
|
||||||
|
|
||||||
ALTER TABLE phpbb_user_notifications ADD PRIMARY KEY (item_type, item_id, user_id, method);;
|
|
||||||
|
|
||||||
|
|
||||||
# Table: 'phpbb_user_group'
|
# Table: 'phpbb_user_group'
|
||||||
CREATE TABLE phpbb_user_group (
|
CREATE TABLE phpbb_user_group (
|
||||||
|
|
|
@ -1538,16 +1538,6 @@ CREATE TABLE [phpbb_user_notifications] (
|
||||||
) ON [PRIMARY]
|
) ON [PRIMARY]
|
||||||
GO
|
GO
|
||||||
|
|
||||||
ALTER TABLE [phpbb_user_notifications] WITH NOCHECK ADD
|
|
||||||
CONSTRAINT [PK_phpbb_user_notifications] PRIMARY KEY CLUSTERED
|
|
||||||
(
|
|
||||||
[item_type],
|
|
||||||
[item_id],
|
|
||||||
[user_id],
|
|
||||||
[method]
|
|
||||||
) ON [PRIMARY]
|
|
||||||
GO
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Table: 'phpbb_user_group'
|
Table: 'phpbb_user_group'
|
||||||
|
|
|
@ -884,8 +884,7 @@ CREATE TABLE phpbb_user_notifications (
|
||||||
item_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
item_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||||
user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||||
method varbinary(255) DEFAULT '' NOT NULL,
|
method varbinary(255) DEFAULT '' NOT NULL,
|
||||||
notify tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
|
notify tinyint(1) UNSIGNED DEFAULT '1' NOT NULL
|
||||||
PRIMARY KEY (item_type, item_id, user_id, method)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -884,8 +884,7 @@ CREATE TABLE phpbb_user_notifications (
|
||||||
item_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
item_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||||
user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||||
method varchar(255) DEFAULT '' NOT NULL,
|
method varchar(255) DEFAULT '' NOT NULL,
|
||||||
notify tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
|
notify tinyint(1) UNSIGNED DEFAULT '1' NOT NULL
|
||||||
PRIMARY KEY (item_type, item_id, user_id, method)
|
|
||||||
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
|
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1650,8 +1650,7 @@ CREATE TABLE phpbb_user_notifications (
|
||||||
item_id number(8) DEFAULT '0' NOT NULL,
|
item_id number(8) DEFAULT '0' NOT NULL,
|
||||||
user_id number(8) DEFAULT '0' NOT NULL,
|
user_id number(8) DEFAULT '0' NOT NULL,
|
||||||
method varchar2(255) DEFAULT '' ,
|
method varchar2(255) DEFAULT '' ,
|
||||||
notify number(1) DEFAULT '1' NOT NULL,
|
notify number(1) DEFAULT '1' NOT NULL
|
||||||
CONSTRAINT pk_phpbb_user_notifications PRIMARY KEY (item_type, item_id, user_id, method)
|
|
||||||
)
|
)
|
||||||
/
|
/
|
||||||
|
|
||||||
|
|
|
@ -1136,8 +1136,7 @@ CREATE TABLE phpbb_user_notifications (
|
||||||
item_id INT4 DEFAULT '0' NOT NULL CHECK (item_id >= 0),
|
item_id INT4 DEFAULT '0' NOT NULL CHECK (item_id >= 0),
|
||||||
user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
|
user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
|
||||||
method varchar(255) DEFAULT '' NOT NULL,
|
method varchar(255) DEFAULT '' NOT NULL,
|
||||||
notify INT2 DEFAULT '1' NOT NULL CHECK (notify >= 0),
|
notify INT2 DEFAULT '1' NOT NULL CHECK (notify >= 0)
|
||||||
PRIMARY KEY (item_type, item_id, user_id, method)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -857,8 +857,7 @@ CREATE TABLE phpbb_user_notifications (
|
||||||
item_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
item_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||||
user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||||
method varchar(255) NOT NULL DEFAULT '',
|
method varchar(255) NOT NULL DEFAULT '',
|
||||||
notify INTEGER UNSIGNED NOT NULL DEFAULT '1',
|
notify INTEGER UNSIGNED NOT NULL DEFAULT '1'
|
||||||
PRIMARY KEY (item_type, item_id, user_id, method)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue