}
public function execute() {
- $this->output( "Beginning batch conversion of user options.\n" );
+ $this->output( "...batch conversion of user_options: " );
$id = 0;
$dbw = wfGetDB( DB_MASTER );
- if ( !$dbw->fieldExists( 'user', 'user_options ' ) ) {
- $this->output( "No user_options field in the user table. Nothing to migrate" );
+ if ( !$dbw->fieldExists( 'user', 'user_options', __METHOD__ ) ) {
+ $this->output( "nothing to migrate. " );
return;
}
while ( $id !== null ) {
$this->output( "--Converted to ID $id\n" );
}
}
- $this->output( "Conversion done. Converted " . $this->mConversionCount . " user records.\n" );
+ $this->output( "done. Converted " . $this->mConversionCount . " user records.\n" );
}
/**