Remove redundant column from wcf1_tag_to_object.tagID key
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 27 Jan 2021 10:49:23 +0000 (11:49 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 29 Jan 2021 15:49:32 +0000 (16:49 +0100)
This key was identical to the `(objectTypeID, tagID)` key. We don't need the
objectTypeID here.

wcfsetup/setup/db/install.sql

index 4f1dec731bdeca2a8d2956cb04215aceda55793f..a30a0a25784844c56059bf074390c962bacc0a59 100644 (file)
@@ -1351,7 +1351,7 @@ CREATE TABLE wcf1_tag_to_object (
        languageID INT(10) NOT NULL,
        UNIQUE KEY (objectTypeID, objectID, tagID),
        KEY (objectTypeID, tagID),
-       KEY (tagID, objectTypeID)
+       KEY (tagID)
 );
 
 DROP TABLE IF EXISTS wcf1_template;