}
public function doDBUpdates() {
- $force = $this->getOption( 'force' );
-
$db = $this->getDB( DB_MASTER );
$this->output( "Updating *_from_namespace fields in links tables.\n" );
$start = $this->getOption( 'lastUpdatedId' );
if ( !$start ) {
- $start = $db->selectField( 'page', 'MIN(page_id)', false, __METHOD__ );
+ $start = $db->selectField( 'page', 'MIN(page_id)', '', __METHOD__ );
}
if ( !$start ) {
$this->output( "Nothing to do." );
return false;
}
- $end = $db->selectField( 'page', 'MAX(page_id)', false, __METHOD__ );
+ $end = $db->selectField( 'page', 'MAX(page_id)', '', __METHOD__ );
$batchSize = $this->getBatchSize();
# Do remaining chunk