Skip to content

Commit edfb753

Browse files
committed
Do not use UNIQUE KEY, as the value null can be included
1 parent ac89843 commit edfb753

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

wcfsetup/install/files/acp/database/update_com.woltlab.wcf_6.2_step1.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
DatabaseTablePrimaryIndex::create()
7474
->columns(['contentID']),
7575
DatabaseTableIndex::create('id')
76-
->type(DatabaseTableIndex::UNIQUE_TYPE)
7776
->columns(['rankID', 'languageID']),
7877
])
7978
->foreignKeys([

wcfsetup/setup/db/install.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1966,7 +1966,7 @@ CREATE TABLE wcf1_user_rank_content (
19661966
title VARCHAR(255) NOT NULL,
19671967

19681968
PRIMARY KEY(contentID),
1969-
UNIQUE KEY id (rankID, languageID)
1969+
KEY id (rankID, languageID)
19701970
);
19711971

19721972
DROP TABLE IF EXISTS wcf1_user_session;

0 commit comments

Comments
 (0)