class AlterSharedConstraints extends Maintenance {
public function __construct() {
parent::__construct();
- $this->mDescription = "Alter foreign key to reference master tables in shared database setup.";
+ $this->addDescription( 'Alter foreign key to reference master tables in shared database setup.' );
}
public function getDbType() {
return;
}
- $dbw = wfGetDB( DB_MASTER );
+ $dbw = $this->getDB( DB_MASTER );
foreach ( $wgSharedTables as $table ) {
$stable = $dbw->tableNameInternal( $table );
if ( $wgSharedPrefix != null ) {