Objective
- Have one (1) maintenance script that we recommend for the purpose of applying schema patches manually
- ... this would have the same protections and disable-guards as update.php,
- .. use a writeble/admin database connection by default,
- .. might run Installer and DatabaseUpdater-related classes and hooks.
- Have one (1) maintenance script that we recommend for the purpose of ad-hoc debugging against a production database.
- ... this would use a read connection by default,
- .. is incapable of running any Installer or DatabaseUpdater-related classes or hooks.
Background
- T249565: Wikidata's wb_items_per_site table has suddenly disappeared, creating DBQueryErrors on page views
- T157651: sql.php must not run LoadExtensionSchemaUpdates
- T249683: Redefine mysql GRANTs for wikiadmin
Proposal
(TBD)