Adds languageID to wcf1_search_index's unique key
authorMatthias Schmidt <gravatronics@live.com>
Fri, 7 Jun 2013 16:55:06 +0000 (18:55 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 7 Jun 2013 16:55:06 +0000 (18:55 +0200)
wcfsetup/setup/db/install.sql

index f3d518a35dc9fd6941e380fe1558553dbf7e3036..bb9c5f5e5952ae6b2a1cf74fd59790824e9a0328 100644 (file)
@@ -758,7 +758,7 @@ CREATE TABLE wcf1_search_index (
        userID INT(10),
        username VARCHAR(255) NOT NULL DEFAULT '',
        languageID INT(10),
-       UNIQUE KEY (objectTypeID, objectID),
+       UNIQUE KEY (objectTypeID, objectID, languageID),
        FULLTEXT INDEX fulltextIndex (subject, message, metaData),
        FULLTEXT INDEX fulltextIndexSubjectOnly (subject),
        KEY (userID, objectTypeID, time)