summaryrefslogtreecommitdiff
path: root/maintenance/archives/patch-pl-tl-il-unique.sql
blob: a3566705c567f7651ea3706254db2b33af0e7903 (plain)
1
2
3
4
5
6
7
8
9
10
11
--
-- patch-pl-tl-il-unique-index.sql
--
-- Make reorderings of UNIQUE indices UNIQUE as well

DROP INDEX /*i*/pl_namespace ON /*_*/pagelinks;
CREATE UNIQUE INDEX /*i*/pl_namespace ON /*_*/pagelinks (pl_namespace, pl_title, pl_from);
DROP INDEX /*i*/tl_namespace ON /*_*/templatelinks;
CREATE UNIQUE INDEX /*i*/tl_namespace ON /*_*/templatelinks (tl_namespace, tl_title, tl_from);
DROP INDEX /*i*/il_to ON /*_*/imagelinks;
CREATE UNIQUE INDEX /*i*/il_to ON /*_*/imagelinks (il_to, il_from);