$this->addArg( 'newdb', 'New DB name' );
}
- protected function getDbType() {
+ public function getDbType() {
return Maintenance::DB_ADMIN;
}
$extdb->query( "ALTER TABLE {$from}.blobs RENAME TO {$to}.blobs" );
$extdb->selectDB( $from );
$extdb->sourceFile( $this->getDir() . '/storage/blobs.sql' );
- $extdb->immediateCommit();
+ $extdb->commit();
}
}
$this->output( "done.\n" );