mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-09-23 10:23:23 +00:00
We need a master to do write actions...
Change-Id: I618d371cdf76d96370c65975db702ed2fef0579c
This commit is contained in:
parent
69506832f0
commit
bfe362d059
|
@ -42,8 +42,8 @@ class UpdateScratchTokenFormat extends Maintenance {
|
|||
}
|
||||
|
||||
public function execute() {
|
||||
$dbr = wfGetDB( DB_SLAVE );
|
||||
if ( !OATHAuthHooks::schemaUpdateOldUsers( $dbr ) ) {
|
||||
$dbw = $this->getDB( DB_MASTER );
|
||||
if ( !OATHAuthHooks::schemaUpdateOldUsers( $dbw ) ) {
|
||||
$this->error( "Failed to update scratch_token rows.\n", 1);
|
||||
}
|
||||
$this->output( "Done.\n" );
|
||||
|
|
Loading…
Reference in a new issue