$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 ) {
}
$end = $n + self::RTI_CHUNK_SIZE - 1;
- $res = $this->db->select( $revQuery['tables'], $revQuery['fields'],
- [ "page_id BETWEEN $n AND $end", 'page_latest = rev_id', 'rev_text_id = old_id' ],
- __METHOD__
+ $res = $this->db->select(
+ $revQuery['tables'],
+ $revQuery['fields'],
+ [ "page_id BETWEEN $n AND $end", 'page_latest = rev_id' ],
+ __METHOD__,
+ [],
+ $revQuery['joins']
);
foreach ( $res as $s ) {