protected function _process( array $stmts )
	{
		$this->_msg( 'Renaming service configuration', 0 );

		if( $this->_schema->tableExists( 'mshop_service' )
			&& $this->_schema->columnExists( 'mshop_service', 'config' ) === true
		) {
			$cntRows = 0;

			foreach( $stmts as $stmt )
			{
				$result = $this->_conn->create( $stmt )->execute();
				$cntRows += $result->affectedRows();
				$result->finish();
			}

			if( $cntRows > 0 ) {
				$this->_status( sprintf( 'done (%1$d)', $cntRows ) );
			} else {
				$this->_status( 'OK' );
			}
		}
		else
		{
			$this->_status( 'OK' );
		}
	}
protected function _process( array $stmts )
	{
		$this->_msg( 'Renaming service configuration', 0 );

		if( $this->_schema->tableExists( 'mshop_service' )
			&& $this->_schema->columnExists( 'mshop_service', 'config' ) === true
		) {
			$cntRows = 0;

			foreach( $stmts as $stmt )
			{
				$result = $this->_conn->create( $stmt )->execute();
				$cntRows += $result->affectedRows();
				$result->finish();
			}

			if( $cntRows > 0 ) {
				$this->_status( sprintf( 'done (%1$d)', $cntRows ) );
			} else {
				$this->_status( 'OK' );
			}
		}
		else
		{
			$this->_status( 'OK' );
		}
	}
protected function _process ( array $ stmts ) { $ this -> _msg ( 'Renaming service configuration' , 0 ) ; if ( $ this -> _schema -> tableExists ( 'mshop_service' ) && $ this -> _schema -> columnExists ( 'mshop_service' , 'config' ) === true ) { $ cntRows = 0 ; foreach ( $ stmts as $ stmt ) { $ result = $ this -> _conn -> create ( $ stmt ) -> execute ( ) ; $ cntRows += $ result -> affectedRows ( ) ; $ result -> finish ( ) ; } if ( $ cntRows > 0 ) { $ this -> _status ( sprintf ( 'done (%1$d)' , $ cntRows ) ) ; } else { $ this -> _status ( 'OK' ) ; } } else { $ this -> _status ( 'OK' ) ; } }
Renames the service configuration if necessary.

@param array $stmts List of SQL statements to execute.
Renames the service configuration if necessary .