From: Tim Düsterhus Date: Wed, 27 Jan 2021 10:49:23 +0000 (+0100) Subject: Remove redundant column from wcf1_tag_to_object.tagID key X-Git-Tag: 5.4.0_Alpha_1~312^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6e77457e09f57741ddf70816d871c34c8c056f1b;p=GitHub%2FWoltLab%2FWCF.git Remove redundant column from wcf1_tag_to_object.tagID key This key was identical to the `(objectTypeID, tagID)` key. We don't need the objectTypeID here. --- diff --git a/wcfsetup/setup/db/install.sql b/wcfsetup/setup/db/install.sql index 4f1dec731b..a30a0a2578 100644 --- a/wcfsetup/setup/db/install.sql +++ b/wcfsetup/setup/db/install.sql @@ -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;