FixDefaultJsonContentPages iterates in batches over all pages ending with 'json' in
NS_MEDIAWIKI and NS_USER namespaces. Because $lastPage was never updated, the loop
was stuck processing the first batch. This was affecting the upgrade process for wikis
having more than a single batch (100 items) of pages ending with '.json' in a namespace.
Change-Id: I6953bf4c071d8635383b3be067ff3aedddaf8130
This is more consistent with LoadBalancer, modern, and inclusive
of master/master mysql, NDB cluster, and MariaDB galera cluster.
The old constant is an alias now.
Change-Id: I0b37299ecb439cc446ffbe8c341365d1eef45849
MediaWiki:Foo.json and User:Foo/bar.json pages now have a default
content model of JSON, but existing pages using those names will be set
to defaults of wikitext.
The content models of those pages are now set to "json", unless it has
invalid syntax, in which case it will be set to "wikitext".
For convenience, the script is automatically run as part of update.php.
Bug: T108663
Change-Id: I1412937ccea8e65dba58580beec79cbf2286ae01