summaryrefslogtreecommitdiff
path: root/maintenance/archives/patch-image_name_unique.sql
blob: 5cf02d41e451bb6d3ce5c9b723db4b417e2f3999 (plain)
1
2
3
4
5
6
-- Make the image name index unique

ALTER TABLE /*$wgDBprefix*/image DROP INDEX img_name;

ALTER TABLE /*$wgDBprefix*/image
  ADD UNIQUE INDEX img_name (img_name);