class PopulateFilearchiveSha1 extends LoggedUpdateMaintenance {
public function __construct() {
parent::__construct();
- $this->mDescription = "Populate the fa_sha1 field from fa_storage_key";
+ $this->addDescription( 'Populate the fa_sha1 field from fa_storage_key' );
}
protected function getUpdateKey() {
public function doDBUpdates() {
$startTime = microtime( true );
- $dbw = wfGetDB( DB_MASTER );
+ $dbw = $this->getDB( DB_MASTER );
$table = 'filearchive';
$conds = array( 'fa_sha1' => '', 'fa_storage_key IS NOT NULL' );