Code comment and style cleanups to MysqlLockManager
[mediawiki.git] / maintenance / archives / patch-user_nameindex.sql
blob9bf0aab1bb91ff68ab925c5b9834253cb8d4471f
1 --
2 -- Change the index on user_name to a unique index to prevent
3 -- duplicate registrations from creeping in.
4 --
5 -- Run maintenance/userDupes.php or through the updater first
6 -- to clean up any prior duplicate accounts.
7 --
8 -- Added 2005-06-05
9 --
11      ALTER TABLE /*$wgDBprefix*/user
12       DROP INDEX user_name,
13 ADD UNIQUE INDEX user_name(user_name);