Index: trunk/extensions/CentralNotice/patches/patch-notice_languages.sql |
— | — | @@ -5,4 +5,4 @@ |
6 | 6 | `not_id` int unsigned NOT NULL, |
7 | 7 | `not_language` varchar(32) NOT NULL |
8 | 8 | ) /*$wgDBTableOptions*/; |
9 | | -CREATE INDEX /*i*/cn_not_id_not_language ON /*$wgDBprefix*/cn_notice_languages (not_id, not_language); |
| 9 | +CREATE UNIQUE INDEX /*i*/cn_not_id_not_language ON /*$wgDBprefix*/cn_notice_languages (not_id, not_language); |
\ No newline at end of file |
Index: trunk/extensions/CentralNotice/CentralNotice.sql |
— | — | @@ -27,5 +27,4 @@ |
28 | 28 | `not_id` int unsigned NOT NULL, |
29 | 29 | `not_language` varchar(32) NOT NULL |
30 | 30 | ) /*$wgDBTableOptions*/; |
31 | | - |
32 | | -CREATE UNIQUE KEY `not_id_not_language` ON /*_*/cn_notice_languages(`not_id`,`not_language`) |
| 31 | +CREATE UNIQUE INDEX /*i*/cn_not_id_not_language ON /*$wgDBprefix*/cn_notice_languages (not_id, not_language); |
\ No newline at end of file |