X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdeleteOrphanedRevisions.php;h=4d6007063a1c2903653f4b1c699726daead8ad00;hb=f73f2b320d8fe1eb03f78671584d455a2ff9f292;hp=e99f2b0d5b684de4eb76e5edd254981a8207d731;hpb=85fcc8b254e661690a21ab187101b10ca79ac072;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/deleteOrphanedRevisions.php b/maintenance/deleteOrphanedRevisions.php index e99f2b0d5b..4d6007063a 100644 --- a/maintenance/deleteOrphanedRevisions.php +++ b/maintenance/deleteOrphanedRevisions.php @@ -92,6 +92,9 @@ 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__ ); } }