1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mediawiki_ynh.git synced 2024-09-03 19:46:05 +02:00
mediawiki_ynh/sources/mediawiki/maintenance/archives/patch-user_nameindex.sql

13 lines
351 B
SQL

--
-- Change the index on user_name to a unique index to prevent
-- duplicate registrations from creeping in.
--
-- Run maintenance/userDupes.php or through the updater first
-- to clean up any prior duplicate accounts.
--
-- Added 2005-06-05
--
ALTER TABLE /*$wgDBprefix*/user
DROP INDEX user_name,
ADD UNIQUE INDEX user_name(user_name);