X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Finstaller%2FMysqlUpdater.php;h=242363466beba83a63c84bc49630f70f8a521c0b;hb=f5469d36602cb2a95396830b14e9a631d698f3a6;hp=408f2fbb36339983f14a88ae07c7a9a93cc7c989;hpb=fd08137ebf8b34cb1a9711c34d6c4d0357aea5b7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/MysqlUpdater.php b/includes/installer/MysqlUpdater.php index 408f2fbb36..242363466b 100644 --- a/includes/installer/MysqlUpdater.php +++ b/includes/installer/MysqlUpdater.php @@ -84,7 +84,6 @@ class MysqlUpdater extends DatabaseUpdater { [ 'doUserGroupsUpdate' ], [ 'addField', 'site_stats', 'ss_total_pages', 'patch-ss_total_articles.sql' ], [ 'addTable', 'user_newtalk', 'patch-usernewtalk.sql' ], - [ 'addTable', 'transcache', 'patch-transcache.sql' ], [ 'addField', 'interwiki', 'iw_trans', 'patch-interwiki-trans.sql' ], // 1.6 @@ -170,9 +169,8 @@ class MysqlUpdater extends DatabaseUpdater { [ 'doLogUsertextPopulation' ], [ 'doLogSearchPopulation' ], [ 'addTable', 'l10n_cache', 'patch-l10n_cache.sql' ], - [ 'addIndex', 'change_tag', 'change_tag_rc_tag', 'patch-change_tag-indexes.sql' ], + [ 'addIndex', 'tag_summary', 'tag_summary_rc_id', 'patch-change_tag-indexes.sql' ], [ 'addField', 'redirect', 'rd_interwiki', 'patch-rd_interwiki.sql' ], - [ 'doUpdateTranscacheField' ], [ 'doUpdateMimeMinorField' ], // 1.17 @@ -319,7 +317,6 @@ class MysqlUpdater extends DatabaseUpdater { [ 'renameIndex', 'querycache_info', 'qci_type', 'PRIMARY', false, 'patch-querycache_info-fix-pk.sql' ], [ 'renameIndex', 'site_stats', 'ss_row_id', 'PRIMARY', false, 'patch-site_stats-fix-pk.sql' ], - [ 'renameIndex', 'transcache', 'tc_url_idx', 'PRIMARY', false, 'patch-transcache-fix-pk.sql' ], [ 'renameIndex', 'user_former_groups', 'ufg_user_group', 'PRIMARY', false, 'patch-user_former_groups-fix-pk.sql' ], [ 'renameIndex', 'user_properties', 'user_properties_user_property', 'PRIMARY', false, @@ -368,6 +365,12 @@ class MysqlUpdater extends DatabaseUpdater { [ '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' ], + [ 'dropTable', 'transcache' ], + [ 'runMaintenance', PopulateChangeTagDef::class, 'maintenance/populateChangeTagDef.php' ], + [ 'addIndex', 'change_tag', 'change_tag_rc_tag_id', + 'patch-change_tag-change_tag_rc_tag_id.sql' ], + [ 'addField', 'ipblocks', 'ipb_sitewide', 'patch-ipb_sitewide.sql' ], + [ 'addTable', 'ipblocks_restrictions', 'patch-ipblocks_restrictions-table.sql' ], ]; } @@ -926,7 +929,8 @@ class MysqlUpdater extends DatabaseUpdater { $count = ( $count + 1 ) % 100; if ( $count == 0 ) { $lbFactory = $services->getDBLoadBalancerFactory(); - $lbFactory->waitForReplication( [ 'wiki' => wfWikiID() ] ); + $lbFactory->waitForReplication( [ + 'wiki' => wfWikiID(), 'timeout' => self::REPLICATION_WAIT_TIMEOUT ] ); } $this->db->insert( 'templatelinks', [