Index: trunk/extensions/Translate/TranslateHooks.php |
— | — | @@ -165,6 +165,9 @@ |
166 | 166 | $updater->addExtensionUpdate( array( 'addField', 'translate_sections', 'trs_order', "$dir/translate_sections-trs_order.patch.sql", true ) ); |
167 | 167 | $updater->addExtensionUpdate( array( 'addTable', 'revtag', "$dir/revtag.sql", true ) ); |
168 | 168 | $updater->addExtensionUpdate( array( 'addTable', 'translate_groupstats', "$dir/translate_groupstats.sql", true ) ); |
| 169 | + $updater->addExtensionUpdate( array( 'addIndex', 'translate_sections', 'trs_page_order', "$dir/translate_sections-indexchange.sql", true ) ); |
| 170 | + $updater->addExtensionUpdate( array( 'dropIndex', 'translate_sections', 'trs_page', "$dir/translate_sections-indexchange2.sql", true ) ); |
| 171 | + |
169 | 172 | return true; |
170 | 173 | } |
171 | 174 | |
Index: trunk/extensions/Translate/README |
— | — | @@ -30,6 +30,7 @@ |
31 | 31 | |
32 | 32 | == Change log == |
33 | 33 | * 2011-10-01 |
| 34 | +- Changed index on translate_sections database table |
34 | 35 | - Fixed escaping in PythonSingleFFS parser |
35 | 36 | - Fixed a bug in getSourceLanguage for certain message group classes |
36 | 37 | * 2011-09-29 |
Index: trunk/extensions/Translate/sql/translate_sections-indexchange2.sql |
— | — | @@ -0,0 +1 @@ |
| 2 | +DROP INDEX /*i*/trs_page on /*_*/translate_sections; |
Property changes on: trunk/extensions/Translate/sql/translate_sections-indexchange2.sql |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 3 | + native |
Index: trunk/extensions/Translate/sql/translate_sections.sql |
— | — | @@ -17,4 +17,4 @@ |
18 | 18 | PRIMARY KEY (trs_page, trs_key) |
19 | 19 | ) /*$wgDBTableOptions*/; |
20 | 20 | |
21 | | -CREATE INDEX /*i*/trs_page on /*_*/translate_sections (trs_page); |
| 21 | +CREATE INDEX /*i*/trs_page_order on /*_*/translate_sections (trs_page, trs_order); |
Index: trunk/extensions/Translate/sql/translate_sections-indexchange.sql |
— | — | @@ -0,0 +1 @@ |
| 2 | +CREATE INDEX /*i*/trs_page_order on /*_*/translate_sections (trs_page, trs_order); |
Property changes on: trunk/extensions/Translate/sql/translate_sections-indexchange.sql |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 3 | + native |