$this->addOption( "fix", "Actually fix the entries, will dry run otherwise" );
$this->addOption( "regenerate-all",
"Regenerate the page_latest field for all records in table page" );
$this->addOption( "fix", "Actually fix the entries, will dry run otherwise" );
$this->addOption( "regenerate-all",
"Regenerate the page_latest field for all records in table page" );
if ( $this->hasOption( 'regenerate-all' ) ) {
$conds = '';
}
$result = $dbw->select( 'page',
if ( $this->hasOption( 'regenerate-all' ) ) {
$conds = '';
}
$result = $dbw->select( 'page',
- array( 'page_id', 'page_namespace', 'page_title' ),
+ [ 'page_id', 'page_namespace', 'page_title' ],
$name = $title->getPrefixedText();
$latestTime = $dbw->selectField( 'revision',
'MAX(rev_timestamp)',
$name = $title->getPrefixedText();
$latestTime = $dbw->selectField( 'revision',
'MAX(rev_timestamp)',