X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Finstaller%2FMysqlUpdater.php;h=a637ce01e31ce3375c8c33502fced3859226c97c;hb=196fc69ac0007306f3aa662dd2c861f07a73588f;hp=65af086e080e0e7930f4b57b2fd4ee5272cded94;hpb=4a975b8099ee11b15421d03be02206935a8422f1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/MysqlUpdater.php b/includes/installer/MysqlUpdater.php index 65af086e08..a637ce01e3 100644 --- a/includes/installer/MysqlUpdater.php +++ b/includes/installer/MysqlUpdater.php @@ -288,6 +288,9 @@ class MysqlUpdater extends DatabaseUpdater { 'patch-add-rc_name_type_patrolled_timestamp_index.sql' ], [ 'doRevisionPageRevIndexNonUnique' ], [ 'doNonUniquePlTlIl' ], + [ 'addField', 'change_tag', 'ct_id', 'patch-change_tag-ct_id.sql' ], + [ 'addField', 'tag_summary', 'ts_id', 'patch-tag_summary-ts_id.sql' ], + [ 'modifyField', 'recentchanges', 'rc_ip', 'patch-rc_ip_modify.sql' ], ]; } @@ -1122,4 +1125,18 @@ class MysqlUpdater extends DatabaseUpdater { 'Making rev_page_id index non-unique' ); } + + public function getSchemaVars() { + global $wgDBTableOptions; + + $vars = []; + $vars['wgDBTableOptions'] = str_replace( 'TYPE', 'ENGINE', $wgDBTableOptions ); + $vars['wgDBTableOptions'] = str_replace( + 'CHARSET=mysql4', + 'CHARSET=binary', + $vars['wgDBTableOptions'] + ); + + return $vars; + } }