r80076 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80075‎ | r80076 | r80077 >
Date:02:19, 12 January 2011
Author:reedy
Status:ok
Tags:
Comment:
Fix typo from r80075

Rename table variable
Modified paths:
  • /trunk/phase3/maintenance/cleanupRemovedModules.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/cleanupRemovedModules.php
@@ -59,7 +59,7 @@
6060 $this->output( "Cleaning up msg_resource table...\n" );
6161 $i = 1;
6262
63 - $mrRes = $dbw->tableName( 'mr_resource' );
 63+ $mrRes = $dbw->tableName( 'msg_resource' );
6464 do {
6565 $where = $moduleList ? "mr_resource NOT IN ($moduleList)" : '1=1';
6666 $dbw->query( "DELETE FROM $mrRes WHERE $where LIMIT $limit", __METHOD__ );
@@ -72,10 +72,10 @@
7373
7474 $this->output( "Cleaning up msg_resource_links table...\n" );
7575 $i = 1;
76 - $msgRes = $dbw->tableName( 'mr_resource_links' );
 76+ $msgResLinks = $dbw->tableName( 'mr_resource_links' );
7777 do {
7878 $where = $moduleList ? "mrl_resource NOT IN ($moduleList)" : '1=1';
79 - $dbw->query( "DELETE FROM $msgRes WHERE $where LIMIT $limit", __METHOD__ );
 79+ $dbw->query( "DELETE FROM $msgResLinks WHERE $where LIMIT $limit", __METHOD__ );
8080 $numRows = $dbw->affectedRows();
8181 $this->output( "Batch $i: $numRows rows\n" );
8282 $i++;

Follow-up revisions

RevisionCommit summaryAuthorDate
r801751.17: MFT r79960, r80034, r80036, r80043, r80044, r80050, r80053, r80074, r80...catrope17:13, 13 January 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r80075Follwup r75575, honour table prefixes. Bad Roan ;)reedy02:16, 12 January 2011

Status & tagging log