maintenance: Fix SQL range for moveToExternal
Follow-up to commit fea5c2f, which changed from using `BETWEEN` to
expression builder and broke this.
Change-Id: If2686bb547420fa2f12b41adcff69db5611e6428
This commit is contained in:
parent
df9756b9a1
commit
2373e95db7
1 changed files with 1 additions and 1 deletions
|
|
@ -322,7 +322,7 @@ class MoveToExternal extends Maintenance {
|
|||
protected function getConditions( $blockStart, $blockEnd, $dbr ) {
|
||||
return [
|
||||
$dbr->expr( 'old_id', '>=', $blockStart ),
|
||||
$dbr->expr( 'old_id', '>=', $blockEnd ),
|
||||
$dbr->expr( 'old_id', '<=', $blockEnd ),
|
||||
$dbr->expr( 'old_flags', IExpression::NOT_LIKE,
|
||||
new LikeValue( $dbr->anyString(), 'external', $dbr->anyString() ) ),
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in a new issue