public function __construct() {
parent::__construct();
- $this->mDescription = "Cleanup ancient tables and indexes";
+ $this->addDescription( 'Cleanup ancient tables and indexes' );
$this->addOption( 'force', 'Actually run this script' );
}
);
}
- $db = wfGetDB( DB_MASTER );
+ $db = $this->getDB( DB_MASTER );
$ancientTables = array(
'blobs', // 1.4
'brokenlinks', // 1.4