Page MenuHomeMiraheze
Paste P403

SQLs / Scripts for 1.36 update
ActivePublic

Authored by RhinosF1 on Apr 9 2021, 07:06.
[EXTENSIONS]
Confirmed:
sudo -u www-data php /srv/mediawiki/w/maintenance/sql.php --wiki=test3wiki /srv/mediawiki/w/extensions/OAuth/schema/oauth2_allowed_grants.sql
sudo -u www-data php /srv/mediawiki/w/maintenance/sql.php --wiki=test3wiki /srv/mediawiki/w/extensions/OAuth/schema/oauth2_is_confidential.sql
sudo -u www-data php /srv/mediawiki/w/maintenance/sql.php --wiki=test3wiki /srv/mediawiki/w/extensions/OAuth/schema/oauth_version_accepted.sql
sudo -u www-data php /srv/mediawiki/w/extensions/OATHAuth/maintenance/updateTOTPScratchTokensToArray.php --wiki=test3wiki
sudo -u www-data php /srv/mediawiki/w/maintenance/sql.php --wiki=test3wiki /srv/mediawiki/w/extensions/CentralNotice/patches/patch-notice-type-log.sql
sudo -u www-data php /srv/mediawiki/w/maintenance/sql.php --wiki=test3wiki /srv/mediawiki/w/extensions/CentralNotice/patches/patch-notice_not_type.sql
sudo -u www-data php /srv/mediawiki/w/maintenance/sql.php --wiki=test3wiki /srv/mediawiki/w/extensions/DiscussionTools/sql/mysql/discussiontools_subscription.sql
DROP TABLE wb_terms; - Carefully
extensions/CheckUser/archives/patch-cu_changes-cuc_id-unsigned.sql (NOTE: must also be applied to 1.35, but is compatible with both 1.35 and 1.36!)
extensions/Echo/db_patches/echo_push_topic.sql (NOTE: new in 1.36)
To be researched:
./Wikibase/client/sql/mysql/archives/entity_usage-alter-aspect-varbinary-37.sql
./Wikibase/client/sql/mysql/archives/entity_usage-drop-entity_type.sql
./Wikibase/client/sql/mysql/archives/entity_usage-drop-touched.sql
./Wikibase/client/sql/mysql/entity_usage.sql
./Wikibase/repo/sql/mysql/archives/AddRowIDs.sql
./Wikibase/repo/sql/mysql/archives/ChangeChangeObjectId.sql
./Wikibase/repo/sql/mysql/archives/DropItemsPerSiteIndex.sql
./Wikibase/repo/sql/mysql/archives/increase_wbxl_language.sql
./Wikibase/repo/sql/mysql/archives/MakeChangeInfoLarger.sql
./Wikibase/repo/sql/mysql/archives/MakeIpsSitePageLarger.sql
./Wikibase/repo/sql/mysql/archives/MakeRowIDsBig.sql
./Wikibase/repo/sql/mysql/archives/patch-wb_changes_dispatch-make-chd_seen-unsigned.sql
./Wikibase/repo/sql/mysql/archives/patch-wb_changes-drop-change_type_index.sql
./Wikibase/repo/sql/mysql/term_store.sql
./Wikibase/repo/sql/mysql/wb_changes_dispatch.sql
./Wikibase/repo/sql/mysql/wb_changes.sql
./Wikibase/repo/sql/mysql/wb_changes_subscription.sql
./Wikibase/repo/sql/mysql/wb_id_counters.sql
./Wikibase/repo/sql/mysql/wb_items_per_site.sql
./Wikibase/repo/sql/mysql/wb_property_info.sql
[CORE]
https://github.com/wikimedia/mediawiki/blob/686abd50bf96cde41518db0fe17c156185acfca4/includes/installer/MysqlUpdater.php#L189-L24
[ 'modifyField', 'redirect', 'rd_title', 'patch-redirect-rd_title-varbinary.sql' ],
[ 'modifyField', 'pagelinks', 'pl_title', 'patch-pagelinks-pl_title-varbinary.sql' ],
[ 'modifyField', 'templatelinks', 'tl_title', 'patch-templatelinks-tl_title-varbinary.sql' ],
[ 'modifyField', 'imagelinks', 'il_to', 'patch-imagelinks-il_to-varbinary.sql' ],
[ 'modifyField', 'langlinks', 'll_title', 'patch-langlinks-ll_title-varbinary.sql' ],
[ 'modifyField', 'iwlinks', 'iwl_title', 'patch-iwlinks-iwl_title-varbinary.sql' ],
[ 'modifyField', 'category', 'cat_title', 'patch-category-cat_title-varbinary.sql' ],
[ 'modifyField', 'querycache', 'qc_title', 'patch-querycache-qc_title-varbinary.sql' ],
[ 'modifyField', 'querycachetwo', 'qcc_title', 'patch-querycachetwo-qcc_title-varbinary.sql' ], -> CONFIRMED BACKWARDS COMPATIBLE
[ 'modifyField', 'watchlist', 'wl_title', 'patch-watchlist-wl_title-varbinary.sql' ],
[ 'modifyField', 'user_newtalk', 'user_last_timestamp',
'patch-user_newtalk-user_last_timestamp-binary.sql'
],
[ 'modifyField', 'protected_titles', 'pt_title', 'patch-protected_titles-pt_title-varbinary.sql' ],
[ 'dropDefault', 'protected_titles', 'pt_expiry' ],
[ 'dropDefault', 'ip_changes', 'ipc_rev_timestamp' ],
[ 'dropDefault', 'revision_actor_temp', 'revactor_timestamp' ],
[ 'modifyField', 'ipblocks_restrictions', 'ir_type', 'patch-ipblocks_restrictions-ir_type.sql' ],
[ 'renameIndex', 'watchlist', 'namespace_title', 'wl_namespace_title', false,
'patch-watchlist-namespace_title-rename-index.sql' ],
[ 'modifyField', 'job', 'job_title', 'patch-job-job_title-varbinary.sql' ],
[ 'modifyField', 'job', 'job_timestamp', 'patch-job_job_timestamp.sql' ],
[ 'modifyField', 'job', 'job_token_timestamp', 'patch-job_job_token_timestamp.sql' ],
[ 'modifyField', 'watchlist', 'wl_notificationtimestamp', 'patch-watchlist-wl_notificationtimestamp.sql' ],
[ 'modifyField', 'slot_roles', 'role_id', 'patch-slot_roles-role_id.sql' ],
[ 'modifyField', 'content_models', 'model_id', 'patch-content_models-model_id.sql' ],
[ 'modifyField', 'categorylinks', 'cl_to', 'patch-categorylinks-cl_to-varbinary.sql' ],
[ 'modifyField', 'logging', 'log_title', 'patch-logging-log_title-varbinary.sql' ],
[ 'modifyField', 'uploadstash', 'us_timestamp', 'patch-uploadstash-us_timestamp.sql' ],
[ 'renameIndex', 'user_properties', 'user_properties_property', 'up_property', false,
'patch-user_properties-rename-index.sql' ],
[ 'renameIndex', 'sites', 'sites_global_key', 'site_global_key', false, 'patch-sites-rename-indexes.sql' ],
[ 'renameIndex', 'logging', 'type_time', 'log_type_time', false, 'patch-logging-rename-indexes.sql' ],
[ 'modifyField', 'filearchive', 'fa_name', 'patch-filearchive-fa_name.sql' ],
[ 'dropDefault', 'filearchive', 'fa_deleted_timestamp' ],
[ 'dropDefault', 'filearchive', 'fa_timestamp' ],
[ 'modifyField', 'oldimage', 'oi_name', 'patch-oldimage-oi_name-varbinary.sql' ],
[ 'dropDefault', 'oldimage', 'oi_timestamp' ],
[ 'modifyField', 'objectcache', 'exptime', 'patch-objectcache-exptime-notnull.sql' ],
[ 'dropDefault', 'ipblocks', 'ipb_timestamp' ],
[ 'dropDefault', 'ipblocks', 'ipb_expiry' ],
[ 'renameIndex', 'archive', 'name_title_timestamp', 'ar_name_title_timestamp', false,
'patch-archive-rename-name_title_timestamp-index.sql' ],
[ 'modifyField', 'image', 'img_name', 'patch-image-img_name-varbinary.sql' ],
[ 'dropDefault', 'image', 'img_timestamp' ],
[ 'modifyField', 'image', 'img_timestamp', 'patch-image-img_timestamp.sql' ],
[ 'renameIndex', 'site_identifiers', 'site_ids_key', 'si_key', false,
'patch-site_identifiers-rename-indexes.sql' ],
[ 'modifyField', 'recentchanges', 'rc_title', 'patch-recentchanges-rc_title-varbinary.sql' ],
[ 'dropDefault', 'recentchanges', 'rc_timestamp' ],
[ 'modifyField', 'recentchanges', 'rc_timestamp', 'patch-recentchanges-rc_timestamp.sql' ],
[ 'modifyField', 'recentchanges', 'rc_id', 'patch-recentchanges-rc_id.sql' ], -> CONFIRMED BACKWARDS COMPATIBLE
[ 'renameIndex', 'recentchanges', 'new_name_timestamp', 'rc_new_name_timestamp', false,
'patch-recentchanges-rc_new_name_timestamp.sql' ],
[ 'dropDefault', 'archive', 'ar_timestamp' ],
[ 'modifyField', 'archive', 'ar_title', 'patch-archive-ar_title-varbinary.sql' ],
[ 'modifyField', 'page', 'page_title', 'patch-page-page_title-varbinary.sql' ],
[ 'dropDefault', 'page', 'page_touched' ],
[ 'modifyField', 'user', 'user_name', 'patch-user_table-updates.sql' ],