$primaryKey = (array)$primaryKey;
$pkFilter = array_flip( $primaryKey );
$this->output( "Beginning migration of $table.$oldField to $table.$newField\n" );
+ wfWaitForSlaves();
$dbw = $this->getDB( DB_MASTER );
$next = '1=1';
}
$prompt = join( ' ', array_reverse( $prompt ) );
$this->output( "... $prompt\n" );
+ wfWaitForSlaves();
}
$this->output(
protected function migrateToTemp( $table, $primaryKey, $oldField, $newPrimaryKey, $newField ) {
$newTable = $table . '_comment_temp';
$this->output( "Beginning migration of $table.$oldField to $newTable.$newField\n" );
+ wfWaitForSlaves();
$dbw = $this->getDB( DB_MASTER );
$next = [];
// Calculate the "next" condition
$next = [ $primaryKey . ' > ' . $dbw->addQuotes( $row->$primaryKey ) ];
$this->output( "... {$row->$primaryKey}\n" );
+ wfWaitForSlaves();
}
$this->output(