Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ciencia/de5cb46bd310febb3ff4d4d1e300a8a3 to your computer and use it in GitHub Desktop.
Save ciencia/de5cb46bd310febb3ff4d4d1e300a8a3 to your computer and use it in GitHub Desktop.
MediaWiki core updater no destructive updates REL1_43
diff --git a/includes/installer/MysqlUpdater.php b/includes/installer/MysqlUpdater.php
index 82a5b62950e..72239b9c1ba 100644
--- a/includes/installer/MysqlUpdater.php
+++ b/includes/installer/MysqlUpdater.php
@@ -142,13 +142,13 @@ class MysqlUpdater extends DatabaseUpdater {
// 1.41
[ 'addField', 'user', 'user_is_temp', 'patch-user-user_is_temp.sql' ],
- [ 'runMaintenance', MigrateRevisionCommentTemp::class ],
- [ 'dropTable', 'revision_comment_temp' ],
- [ 'runMaintenance', MigrateExternallinks::class ],
- [ 'modifyField', 'externallinks', 'el_to', 'patch-externallinks-el_to_default.sql' ],
+ //[ 'runMaintenance', MigrateRevisionCommentTemp::class ],
+ //[ 'dropTable', 'revision_comment_temp' ],
+ //[ 'runMaintenance', MigrateExternallinks::class ],
+ //[ 'modifyField', 'externallinks', 'el_to', 'patch-externallinks-el_to_default.sql' ],
[ 'addField', 'pagelinks', 'pl_target_id', 'patch-pagelinks-target_id.sql' ],
- [ 'dropField', 'externallinks', 'el_to', 'patch-externallinks-drop-el_to.sql' ],
- [ 'runMaintenance', FixInconsistentRedirects::class ],
+ //[ 'dropField', 'externallinks', 'el_to', 'patch-externallinks-drop-el_to.sql' ],
+ //[ 'runMaintenance', FixInconsistentRedirects::class ],
[ 'modifyField', 'image', 'img_size', 'patch-image-img_size_to_bigint.sql' ],
[ 'modifyField', 'filearchive', 'fa_size', 'patch-filearchive-fa_size_to_bigint.sql' ],
[ 'modifyField', 'oldimage', 'oi_size', 'patch-oldimage-oi_size_to_bigint.sql' ],
@@ -157,19 +157,19 @@ class MysqlUpdater extends DatabaseUpdater {
// 1.42
[ 'addField', 'user_autocreate_serial', 'uas_year', 'patch-user_autocreate_serial-uas_year.sql' ],
[ 'addTable', 'block_target', 'patch-block_target.sql' ],
- [ 'dropIndex', 'categorylinks', 'cl_collation_ext', 'patch-drop-cl_collation_ext.sql' ],
- [ 'runMaintenance', PopulateUserIsTemp::class ],
- [ 'dropIndex', 'sites', 'site_type', 'patch-sites-drop_indexes.sql' ],
- [ 'dropIndex', 'iwlinks', 'iwl_prefix_from_title', 'patch-iwlinks-drop-iwl_prefix_from_title.sql' ],
+ //[ 'dropIndex', 'categorylinks', 'cl_collation_ext', 'patch-drop-cl_collation_ext.sql' ],
+ //[ 'runMaintenance', PopulateUserIsTemp::class ],
+ //[ 'dropIndex', 'sites', 'site_type', 'patch-sites-drop_indexes.sql' ],
+ //[ 'dropIndex', 'iwlinks', 'iwl_prefix_from_title', 'patch-iwlinks-drop-iwl_prefix_from_title.sql' ],
// 1.43
- [ 'migratePagelinks' ],
+ //[ 'migratePagelinks' ],
[ 'modifyField', 'revision', 'rev_id', 'patch-revision-cleanup.sql' ],
[ 'modifyField', 'recentchanges', 'rc_id', 'patch-recentchanges-rc_id-bigint.sql' ],
[ 'modifyField', 'change_tag', 'ct_rc_id', 'patch-change_tag-ct_rc_id.sql' ],
- [ 'runMaintenance', \MigrateBlocks::class ],
- [ 'dropTable', 'ipblocks' ],
- [ 'dropField', 'pagelinks', 'pl_title', 'patch-pagelinks-drop-pl_title.sql' ],
+ //[ 'runMaintenance', \MigrateBlocks::class ],
+ //[ 'dropTable', 'ipblocks' ],
+ //[ 'dropField', 'pagelinks', 'pl_title', 'patch-pagelinks-drop-pl_title.sql' ],
[ 'modifyField', 'page', 'page_links_updated', 'patch-page-page_links_updated-noinfinite.sql' ],
[ 'addPostDatabaseUpdateMaintenance', FixAutoblockLogTitles::class ],
[ 'changeTableOption', 'searchindex', 'CONVERT TO CHARACTER SET utf8mb4', 'utf8mb4' ],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment