$this->output( "Rebuilding index fields for {$count} pages...\n" );
$n = 0;
- $revQuery = Revision::getQueryInfo( [ 'page', 'text' ] );
+ $revQuery = Revision::getQueryInfo( [ 'page' ] );
while ( $n < $count ) {
if ( $n ) {
$res = $this->db->select(
$revQuery['tables'],
$revQuery['fields'],
- [ "page_id BETWEEN $n AND $end", 'page_latest = rev_id', 'rev_text_id = old_id' ],
+ [ "page_id BETWEEN $n AND $end", 'page_latest = rev_id' ],
__METHOD__,
[],
$revQuery['joins']