wiki.techinc.nl/maintenance/archives/patch-pl-tl-il-nonunique.sql
Kevin Israel c1079140e4 Remove patch-pl-tl-il-unique.sql
In 1.24 (b8c038f678), this update from 1.15 (see T18645,
640a6d311e) was undone in tables.sql. However, it was not
removed from MysqlUpdater, so update.php would still make the
indices UNIQUE, even when run on a new MediaWiki installation.

In its place, added patch-pl-tl-il-nonunique.sql, which recreates
the indices to match the current definitions from tables.sql.

Bug: T78513
Change-Id: Ic82ca06c8e7051bcd1e0a2a3d5d251e297a9142f
2016-08-26 05:09:12 -04:00

11 lines
599 B
SQL

-- Make reorderings of UNIQUE indices non-UNIQUE
-- Since 1.24, these indices have been non-UNIQUE in tables.sql.
-- However, an earlier update from 1.15 that made the indices
-- UNIQUE was not removed until 1.28 (T78513).
DROP INDEX /*i*/pl_namespace ON /*_*/pagelinks;
CREATE INDEX /*i*/pl_namespace ON /*_*/pagelinks (pl_namespace, pl_title, pl_from);
DROP INDEX /*i*/tl_namespace ON /*_*/templatelinks;
CREATE INDEX /*i*/tl_namespace ON /*_*/templatelinks (tl_namespace, tl_title, tl_from);
DROP INDEX /*i*/il_to ON /*_*/imagelinks;
CREATE INDEX /*i*/il_to ON /*_*/imagelinks (il_to, il_from);