X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FconvertUserOptions.php;h=501f045607130a6805b53bf5e04ae3f1acd7245d;hb=61e2c04e4e3717d9421629c23398bb51741ec367;hp=70f365485d243f5df8d0d5b4db156222c7b0306e;hpb=9e076d6b1a0af6411c005b24d5adb69345905735;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/convertUserOptions.php b/maintenance/convertUserOptions.php index 70f365485d..501f045607 100644 --- a/maintenance/convertUserOptions.php +++ b/maintenance/convertUserOptions.php @@ -24,6 +24,7 @@ require_once __DIR__ . '/Maintenance.php'; use Wikimedia\Rdbms\ResultWrapper; +use Wikimedia\Rdbms\IDatabase; /** * Maintenance script to convert user options to the new `user_properties` table. @@ -60,7 +61,7 @@ class ConvertUserOptions extends Maintenance { __METHOD__, [ 'ORDER BY' => 'user_id', - 'LIMIT' => $this->mBatchSize, + 'LIMIT' => $this->getBatchSize(), ] ); $id = $this->convertOptionBatch( $res, $dbw ); @@ -76,7 +77,7 @@ class ConvertUserOptions extends Maintenance { /** * @param ResultWrapper $res - * @param Database $dbw + * @param IDatabase $dbw * @return null|int */ function convertOptionBatch( $res, $dbw ) {