Index: trunk/phase3/maintenance/convertLinks.php |
— | — | @@ -193,12 +193,12 @@ |
194 | 194 | if ( $overwriteLinksTable ) { |
195 | 195 | # Check for existing links_backup, and delete it if it exists. |
196 | 196 | $this->output( "Dropping backup links table if it exists..." ); |
197 | | - $dbw->query( "DROP TABLE IF EXISTS $links_backup", DB_MASTER ); |
| 197 | + $dbw->query( "DROP TABLE IF EXISTS $links_backup", __METHOD__ ); |
198 | 198 | $this->output( " done.\n" ); |
199 | 199 | |
200 | 200 | # Swap in the new table, and move old links table to links_backup |
201 | 201 | $this->output( "Swapping tables '$links' to '$links_backup'; '$links_temp' to '$links'..." ); |
202 | | - $dbw->query( "RENAME TABLE links TO $links_backup, $links_temp TO $links", DB_MASTER ); |
| 202 | + $dbw->query( "RENAME TABLE links TO $links_backup, $links_temp TO $links", __METHOD__ ); |
203 | 203 | $this->output( " done.\n\n" ); |
204 | 204 | |
205 | 205 | $dbw->close(); |