From: Marcel Werk Date: Sat, 15 Aug 2020 14:16:03 +0000 (+0200) Subject: Added a unique key to `wcf1_user.username` X-Git-Tag: 5.3.0_Alpha_1~60 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ec8265ed5f1a984e44d9087db89ce6fddf43afbe;p=GitHub%2FWoltLab%2FWCF.git Added a unique key to `wcf1_user.username` Closes #3494 --- diff --git a/wcfsetup/setup/db/install.sql b/wcfsetup/setup/db/install.sql index 56a4a06e11..61c9352cab 100644 --- a/wcfsetup/setup/db/install.sql +++ b/wcfsetup/setup/db/install.sql @@ -1502,7 +1502,7 @@ CREATE TABLE wcf1_user ( articles INT(10) NOT NULL DEFAULT 0, blacklistMatches VARCHAR(255) NOT NULL DEFAULT '', - KEY username (username), + UNIQUE KEY username (username), KEY email (email), KEY registrationDate (registrationDate), KEY styleID (styleID),