wiki.techinc.nl/maintenance/archives/patch-rename-ar_usertext_timestamp.sql
Tim Starling c13dd55f4e Fix incorrect index name in new 1.28.0 installations
This index name should be the same in new installations as in all other
MySQL installations. This is necessary so that
Special:DeletedContributions does not give an SQL error. Release notes
will go in the 1.28 branch.

Bug: T154872
Change-Id: I535a5513ab56203139c4cf64874ea7e7498990e3
2017-04-06 08:04:06 +10:00

7 lines
437 B
SQL

-- Rename the archive.ar_usertext_timestamp index to usertext_timestamp.
-- This is for MySQL only and is only necessary on wikis freshly installed on
-- 1.28.0 when bug T154872 was present. The patch will probably be removed in
-- 1.29 since we plan on renaming the index properly to ar_usertext_timestamp.
ALTER TABLE /*$wgDBprefix*/archive
DROP INDEX ar_usertext_timestamp,
ADD INDEX usertext_timestamp (ar_user_text,ar_timestamp);