[ticket/11103] Remove Primary Key on user_notifications table

PHPBB3-11103
This commit is contained in:
Nathan Guse 2013-01-31 10:14:42 -06:00
parent bd49942552
commit b567e09630
9 changed files with 5 additions and 34 deletions

View file

@ -1790,12 +1790,6 @@ function get_schema_struct()
'method' => array('VCHAR:255', ''),
'notify' => array('BOOL', 1),
),
'PRIMARY_KEY' => array(
'item_type',
'item_id',
'user_id',
'method',
),
);
$schema_data['phpbb_user_group'] = array(

View file

@ -1213,12 +1213,6 @@ function database_update_info()
'method' => array('VCHAR:255', ''),
'notify' => array('BOOL', 1),
),
'PRIMARY_KEY' => array(
'item_type',
'item_id',
'user_id',
'method',
),
),
),
'add_columns' => array(

View file

@ -1252,8 +1252,6 @@ CREATE TABLE phpbb_user_notifications (
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'
CREATE TABLE phpbb_user_group (

View file

@ -1538,16 +1538,6 @@ CREATE TABLE [phpbb_user_notifications] (
) ON [PRIMARY]
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'

View file

@ -884,8 +884,7 @@ CREATE TABLE phpbb_user_notifications (
item_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
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)
notify tinyint(1) UNSIGNED DEFAULT '1' NOT NULL
);

View file

@ -884,8 +884,7 @@ CREATE TABLE phpbb_user_notifications (
item_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
method varchar(255) DEFAULT '' NOT NULL,
notify tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
PRIMARY KEY (item_type, item_id, user_id, method)
notify tinyint(1) UNSIGNED DEFAULT '1' NOT NULL
) CHARACTER SET `utf8` COLLATE `utf8_bin`;

View file

@ -1650,8 +1650,7 @@ CREATE TABLE phpbb_user_notifications (
item_id number(8) DEFAULT '0' NOT NULL,
user_id number(8) DEFAULT '0' NOT NULL,
method varchar2(255) DEFAULT '' ,
notify number(1) DEFAULT '1' NOT NULL,
CONSTRAINT pk_phpbb_user_notifications PRIMARY KEY (item_type, item_id, user_id, method)
notify number(1) DEFAULT '1' NOT NULL
)
/

View file

@ -1136,8 +1136,7 @@ CREATE TABLE phpbb_user_notifications (
item_id INT4 DEFAULT '0' NOT NULL CHECK (item_id >= 0),
user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
method varchar(255) DEFAULT '' NOT NULL,
notify INT2 DEFAULT '1' NOT NULL CHECK (notify >= 0),
PRIMARY KEY (item_type, item_id, user_id, method)
notify INT2 DEFAULT '1' NOT NULL CHECK (notify >= 0)
);

View file

@ -857,8 +857,7 @@ CREATE TABLE phpbb_user_notifications (
item_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
method varchar(255) NOT NULL DEFAULT '',
notify INTEGER UNSIGNED NOT NULL DEFAULT '1',
PRIMARY KEY (item_type, item_id, user_id, method)
notify INTEGER UNSIGNED NOT NULL DEFAULT '1'
);