Add basic IP range support to Special:Contributions
[lhc/web/wiklou.git] / maintenance / deleteOldRevisions.php
index 9559623..aa11cd9 100644 (file)
@@ -86,6 +86,7 @@ class DeleteOldRevisions extends Maintenance {
                if ( $delete && $count ) {
                        $this->output( "Deleting..." );
                        $dbw->delete( 'revision', [ 'rev_id' => $oldRevs ], __METHOD__ );
+                       $dbw->delete( 'ip_changes', [ 'ipc_rev_id' => $oldRevs ], __METHOD__ );
                        $this->output( "done.\n" );
                }