X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdeleteOrphanedRevisions.php;h=8d3f6b3e5b3d6cc894f6539d3ce4e55bf7afd57f;hb=a5e349c90843353df5e3c961ac78533bf0644897;hp=e99f2b0d5b684de4eb76e5edd254981a8207d731;hpb=dae4c94d893057345f62a3d498fb85c0a54de5a6;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/deleteOrphanedRevisions.php b/maintenance/deleteOrphanedRevisions.php index e99f2b0d5b..8d3f6b3e5b 100644 --- a/maintenance/deleteOrphanedRevisions.php +++ b/maintenance/deleteOrphanedRevisions.php @@ -92,8 +92,11 @@ class DeleteOrphanedRevisions extends Maintenance { $id = [ $id ]; } $dbw->delete( 'revision', [ 'rev_id' => $id ], __METHOD__ ); + + // Delete from ip_changes should a record exist. + $dbw->delete( 'ip_changes', [ 'ipc_rev_id' => $id ], __METHOD__ ); } } -$maintClass = "DeleteOrphanedRevisions"; +$maintClass = DeleteOrphanedRevisions::class; require_once RUN_MAINTENANCE_IF_MAIN;