r71432 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71431‎ | r71432 | r71433 >
Date:11:59, 22 August 2010
Author:ialex
Status:ok
Tags:
Comment:
Forgot to indent this correctly...
Modified paths:
  • /trunk/phase3/includes/installer/DatabaseUpdater.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/installer/DatabaseUpdater.php
@@ -230,14 +230,14 @@
231231 * @param $fullpath Boolean Whether to treat $patch path as a relative or not
232232 */
233233 function dropField( $table, $field, $patch, $fullpath = false ) {
234 - if ( $this->db->fieldExists( $table, $field ) ) {
235 - wfOut( "Table $table contains $field field. Dropping... " );
236 - $this->applyPatch( $patch, $fullpath );
237 - wfOut( "ok\n" );
238 - } else {
239 - wfOut( "...$table table does not contain $field field.\n" );
 234+ if ( $this->db->fieldExists( $table, $field ) ) {
 235+ wfOut( "Table $table contains $field field. Dropping... " );
 236+ $this->applyPatch( $patch, $fullpath );
 237+ wfOut( "ok\n" );
 238+ } else {
 239+ wfOut( "...$table table does not contain $field field.\n" );
 240+ }
240241 }
241 - }
242242 }
243243
244244 class OracleUpdater extends DatabaseUpdater {

Status & tagging log