r98629 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98628‎ | r98629 | r98630 >
Date:21:26, 1 October 2011
Author:nikerabbit
Status:deferred
Tags:
Comment:
Changed index on translate_sections database table to something useful
Modified paths:
  • /trunk/extensions/Translate/README (modified) (history)
  • /trunk/extensions/Translate/TranslateHooks.php (modified) (history)
  • /trunk/extensions/Translate/sql/translate_sections-indexchange.sql (added) (history)
  • /trunk/extensions/Translate/sql/translate_sections-indexchange2.sql (added) (history)
  • /trunk/extensions/Translate/sql/translate_sections.sql (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/TranslateHooks.php
@@ -165,6 +165,9 @@
166166 $updater->addExtensionUpdate( array( 'addField', 'translate_sections', 'trs_order', "$dir/translate_sections-trs_order.patch.sql", true ) );
167167 $updater->addExtensionUpdate( array( 'addTable', 'revtag', "$dir/revtag.sql", true ) );
168168 $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+
169172 return true;
170173 }
171174
Index: trunk/extensions/Translate/README
@@ -30,6 +30,7 @@
3131
3232 == Change log ==
3333 * 2011-10-01
 34+- Changed index on translate_sections database table
3435 - Fixed escaping in PythonSingleFFS parser
3536 - Fixed a bug in getSourceLanguage for certain message group classes
3637 * 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
13 + native
Index: trunk/extensions/Translate/sql/translate_sections.sql
@@ -17,4 +17,4 @@
1818 PRIMARY KEY (trs_page, trs_key)
1919 ) /*$wgDBTableOptions*/;
2020
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
13 + native

Status & tagging log