X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FconvertUserOptions.php;h=501f045607130a6805b53bf5e04ae3f1acd7245d;hp=b8001a4d21036903c147bd1673c35a1bb5b49d60;hb=86d7bd86fa08db2dbf3651a656d8238a34703c4f;hpb=61898ad28ed69c5b391eb43e0db9386279b9612c diff --git a/maintenance/convertUserOptions.php b/maintenance/convertUserOptions.php index b8001a4d21..501f045607 100644 --- a/maintenance/convertUserOptions.php +++ b/maintenance/convertUserOptions.php @@ -23,6 +23,9 @@ 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. * @@ -58,7 +61,7 @@ class ConvertUserOptions extends Maintenance { __METHOD__, [ 'ORDER BY' => 'user_id', - 'LIMIT' => $this->mBatchSize, + 'LIMIT' => $this->getBatchSize(), ] ); $id = $this->convertOptionBatch( $res, $dbw ); @@ -74,7 +77,7 @@ class ConvertUserOptions extends Maintenance { /** * @param ResultWrapper $res - * @param Database $dbw + * @param IDatabase $dbw * @return null|int */ function convertOptionBatch( $res, $dbw ) {