summaryrefslogtreecommitdiff
path: root/maintenance/archives/patch-image_name_primary.sql
blob: 5bd882646f782f3717a8fe30008bb34d0c784467 (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 PRIMARY KEY img_name (img_name);