X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FfixUserRegistration.php;h=e1b16829892431524dc2a27a802209201bbf32d3;hb=62991fcb7a5027b1eceb5656829c1c65bf9f98cb;hp=57fd91bc9bc496ce541c3f2743621b624370fe1f;hpb=07a791ffd1d80c6a8f2ca4dfdbc3f2002ac869fe;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/fixUserRegistration.php b/maintenance/fixUserRegistration.php index 57fd91bc9b..e1b1682989 100644 --- a/maintenance/fixUserRegistration.php +++ b/maintenance/fixUserRegistration.php @@ -59,11 +59,15 @@ class FixUserRegistration extends Maintenance { $id = $row->user_id; $lastId = $id; // Get first edit time + $actorQuery = ActorMigration::newMigration() + ->getWhere( $dbw, 'rev_user', User::newFromId( $id ) ); $timestamp = $dbw->selectField( - 'revision', + [ 'revision' ] + $actorQuery['tables'], 'MIN(rev_timestamp)', - [ 'rev_user' => $id ], - __METHOD__ + $actorQuery['conds'], + __METHOD__, + [], + $actorQuery['joins'] ); // Update if ( $timestamp !== null ) {