class PopulateRecentChangesSource extends LoggedUpdateMaintenance {
public function __construct() {
parent::__construct();
- $this->mDescription =
- "Populates rc_source field of the recentchanges table with the data in rc_type.";
+ $this->addDescription(
+ 'Populates rc_source field of the recentchanges table with the data in rc_type.' );
$this->setBatchSize( 100 );
}
$start = $dbw->selectField( 'recentchanges', 'MIN(rc_id)', false, __METHOD__ );
if ( !$start ) {
$this->output( "Nothing to do.\n" );
+
return true;
}
$end = $dbw->selectField( 'recentchanges', 'MAX(rc_id)', false, __METHOD__ );