* @ingroup RevisionDelete
*/
+use Wikimedia\Rdbms\IDatabase;
+
/**
* List for oldimage table items
*/
$archiveNames[] = $timestamp . '!' . $this->title->getDBkey();
}
+ $oiQuery = OldLocalFile::getQueryInfo();
return $db->select(
- 'oldimage',
- OldLocalFile::selectFields(),
+ $oiQuery['tables'],
+ $oiQuery['fields'],
[
'oi_name' => $this->title->getDBkey(),
'oi_archive_name' => $archiveNames
],
__METHOD__,
- [ 'ORDER BY' => 'oi_timestamp DESC' ]
+ [ 'ORDER BY' => 'oi_timestamp DESC' ],
+ $oiQuery['joins']
);
}