X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Finstaller%2FMysqlUpdater.php;h=a9ca28614dba819b3ebcaf73650c39e1bc6a2277;hb=81cbe34e4d519c62ac441197fe070709e4324304;hp=c33103cc7a11c84ffed435062d8868cb892dfc36;hpb=2901b84c495edb9ebf70798e12f5695fd19c1b42;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/MysqlUpdater.php b/includes/installer/MysqlUpdater.php index c33103cc7a..a9ca28614d 100644 --- a/includes/installer/MysqlUpdater.php +++ b/includes/installer/MysqlUpdater.php @@ -169,7 +169,7 @@ 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' ], [ 'doUpdateMimeMinorField' ], @@ -366,6 +366,12 @@ class MysqlUpdater extends DatabaseUpdater { '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' ], + [ 'migrateImageCommentTemp' ], ]; } @@ -596,7 +602,7 @@ class MysqlUpdater extends DatabaseUpdater { foreach ( $rows as $row ) { if ( $prev_title == $row->cur_title && $prev_namespace == $row->cur_namespace ) { - $deleteId[] = $row->cur_id; + $deleteId[] = (int)$row->cur_id; } $prev_title = $row->cur_title; $prev_namespace = $row->cur_namespace;