From 68b1b460d655e09d903b3cc8edbe9463e9d77744 Mon Sep 17 00:00:00 2001 From: Reedy Date: Fri, 4 Sep 2020 18:30:20 +0100 Subject: [PATCH] Make use of BatchRowIterator::setCaller Bug: T261014 Change-Id: I803145598f8690e6f054defdc8361cc07a08d2e8 --- extension.json | 2 +- maintenance/migratePreferences.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/extension.json b/extension.json index 84a4f34..3d6c50d 100644 --- a/extension.json +++ b/extension.json @@ -9,7 +9,7 @@ "license-name": "MIT", "type": "other", "requires": { - "MediaWiki": ">= 1.35.0", + "MediaWiki": ">= 1.36.0", "extensions": { "Echo": "*" } diff --git a/maintenance/migratePreferences.php b/maintenance/migratePreferences.php index 08827ff..5ceac4a 100644 --- a/maintenance/migratePreferences.php +++ b/maintenance/migratePreferences.php @@ -63,6 +63,7 @@ class MigratePreferences extends LoggedUpdateMaintenance { ], ] ); $iterator->setFetchColumns( [ '*' ] ); + $iterator->setCaller( __METHOD__ ); $lastRow = (object)[ 'user_id' => 0 ]; $optionsToUpdate = [];