As part of {T59336}, OAuth data (`oauth_registered_consumer` table, `oauth_accepted_consumer` table and OAuth records in the log table) needs to be moved to the Meta database. The data consist of about 250 consumers, 16000 acceptances (authorizations) and 500 OAuth log records.
== Test migration
* run `mwscript extensions/OAuth/maintenance/importCentralWikiLogs.php --wiki=aawiki --old=mediawikiwiki`
(no need to test migration of OAuth tables - they don't exist on Meta now so it's low risk)
== Real migration
* set `$wgMWOAuthReadOnly = true` for all wikis
* run `mwscript extensions/OAuth/maintenance/migrateCentralWiki.php --wiki=metawiki --old=mediawikiwiki --new=metawiki --table=oauth_registered_consumer`
* run `mwscript extensions/OAuth/maintenance/migrateCentralWiki.php --wiki=metawiki --old=mediawikiwiki --new=metawiki --table=oauth_accepted_consumer`
* set `$wgMWOAuthCentralWiki = 'metawiki'` for all wikis
* set `$wgMWOAuthReadOnly = false` for all wikis
* run `mwscript extensions/OAuth/maintenance/importCentralWikiLogs.php --wiki=metawiki --old=mediawikiwiki`
== Testing
* test authorizing/deauthorizing an existing consumer
* register a new consumer, test userinfo API via [[ http://pythonhosted.org/mwoauth/ | mwoauth ]]