X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupRemovedModules.php;h=68f57a39d7c67f1e0f8f3a03a0eb7bc36cc9f5bd;hb=12e6fd1ec066237f9ed9fb1c8191c27a616e108b;hp=a4e66ca63b651995c8d07fa9ec4773d815c5bcff;hpb=6b1a173f07f1a04188735f4688ce6335da14c3b7;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupRemovedModules.php b/maintenance/cleanupRemovedModules.php index a4e66ca63b..68f57a39d7 100644 --- a/maintenance/cleanupRemovedModules.php +++ b/maintenance/cleanupRemovedModules.php @@ -58,33 +58,6 @@ class CleanupRemovedModules extends Maintenance { wfWaitForSlaves(); } while ( $numRows > 0 ); $this->output( "done\n" ); - - $this->output( "Cleaning up msg_resource table...\n" ); - $i = 1; - - $mrRes = $dbw->tableName( 'msg_resource' ); - do { - $where = $moduleList ? "mr_resource NOT IN ($moduleList)" : '1=1'; - $dbw->query( "DELETE FROM $mrRes WHERE $where LIMIT $limit", __METHOD__ ); - $numRows = $dbw->affectedRows(); - $this->output( "Batch $i: $numRows rows\n" ); - $i++; - wfWaitForSlaves(); - } while ( $numRows > 0 ); - $this->output( "done\n" ); - - $this->output( "Cleaning up msg_resource_links table...\n" ); - $i = 1; - $msgResLinks = $dbw->tableName( 'msg_resource_links' ); - do { - $where = $moduleList ? "mrl_resource NOT IN ($moduleList)" : '1=1'; - $dbw->query( "DELETE FROM $msgResLinks WHERE $where LIMIT $limit", __METHOD__ ); - $numRows = $dbw->affectedRows(); - $this->output( "Batch $i: $numRows rows\n" ); - $i++; - wfWaitForSlaves(); - } while ( $numRows > 0 ); - $this->output( "done\n" ); } }