The 'text' flag in calls to Revision::getQueryInfo() and RevisionStore::getQueryInfo() causes a join of revision.rev_text_id against text.old_id. Since rev_text_id is no longer populated when disabling the legacy schema, all usages of it need to be eliminated first.
To find problematic calls to getQueryInfo, perhaps it helps to [[https://codesearch.wmflabs.org/extensions/?q=-%3Eold_&i=nope&files=&repos=|search for all references to fields that start with old_]].
DOD: This task should be considered done when any code using the 'text' flag has either been removed or is gated on the MCR schema migration stage, in core and all extensions deployed by Wikimedia, as well as extensions bundled with MediaWiki releases. Other extensions and external tools may be left to be updated later.
Extensions to fix:
- Translate (T228675)
- Flow (maintenance script)
- ReplaceText (bundeled)