We need a master to do write actions...

Change-Id: I618d371cdf76d96370c65975db702ed2fef0579c
This commit is contained in:
Reedy 2016-09-17 00:04:05 +01:00
parent 69506832f0
commit bfe362d059

View file

@ -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" );