Merge "Add index on rc_this_oldid"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 17 Aug 2018 20:45:43 +0000 (20:45 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 17 Aug 2018 20:45:43 +0000 (20:45 +0000)
1  2 
includes/installer/MysqlUpdater.php

@@@ -367,6 -367,7 +367,7 @@@ class MysqlUpdater extends DatabaseUpda
                                'patch-protected_titles-fix-pk.sql' ],
                        [ 'renameIndex', 'site_identifiers', 'site_ids_type', 'PRIMARY', false,
                                'patch-site_identifiers-fix-pk.sql' ],
+                       [ 'addIndex', 'recentchanges', 'rc_this_oldid', 'patch-recentchanges-rc_this_oldid-index.sql' ],
                ];
        }
  
                        'Converting links and brokenlinks tables to pagelinks'
                );
  
 -              global $wgContLang;
 -              foreach ( $wgContLang->getNamespaces() as $ns => $name ) {
 +              foreach (
 +                      MediaWikiServices::getInstance()->getContentLanguage()->getNamespaces() as $ns => $name
 +              ) {
                        if ( $ns == 0 ) {
                                continue;
                        }