+ $idField = 'rev_id';
+ $tsField = 'rev_timestamp';
+ $pageField = 'rev_page';
+ if ( $params['user'] !== null &&
+ ( $wgActorTableSchemaMigrationStage & SCHEMA_COMPAT_READ_NEW )
+ ) {
+ // We're going to want to use the page_actor_timestamp index (on revision_actor_temp)
+ // so use that table's denormalized fields.
+ $idField = 'revactor_rev';
+ $tsField = 'revactor_timestamp';
+ $pageField = 'revactor_page';
+ }
+