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:
Func 2025-09-09 04:05:40 +08:00 committed by Umherirrender
parent df9756b9a1
commit 2373e95db7

View file

@ -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() ) ),
];