Merge "Move around "ا" to after "آ" and not before"
[lhc/web/wiklou.git] / maintenance / deleteOldRevisions.php
index 24a63a3..aa11cd9 100644 (file)
@@ -43,7 +43,6 @@ class DeleteOldRevisions extends Maintenance {
        }
 
        function doDelete( $delete = false, $args = [] ) {
-
                # Data should come off the master, wrapped in a transaction
                $dbw = $this->getDB( DB_MASTER );
                $this->beginTransaction( $dbw, __METHOD__ );
@@ -87,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" );
                }