Added a unique key to `wcf1_user.username`
authorMarcel Werk <burntime@woltlab.com>
Sat, 15 Aug 2020 14:16:03 +0000 (16:16 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sat, 15 Aug 2020 14:16:03 +0000 (16:16 +0200)
Closes #3494

wcfsetup/setup/db/install.sql

index 56a4a06e11b1ed7a871929d3b9c459ff22df4c1a..61c9352cabe8631f9f4229371fccaebead8b65b9 100644 (file)
@@ -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),