lib/custom/setup/CustomerChangeAddressRefidParentidLaravel.php
protected function process( array $stmts )
	{
		$table = 'users_address';
		$this->msg( sprintf( 'Rename "refid" to "parentid" in table "%1$s"', $table ), 0 ); $this->status( '' );

		foreach( $stmts as $column => $stmts )
		{
			$this->msg( sprintf( 'Checking column "%1$s"', $column ), 1 );

			if( $this->schema->tableExists( $table )
				&& $this->schema->columnExists( $table, $column ) === true
			) {
				$this->executeList( $stmts );
				$this->status( 'done' );
			} else {
				$this->status( 'OK' );
			}
		}
	}
protected function process( array $stmts )
	{
		$table = 'users_address';
		$this->msg( sprintf( 'Rename "refid" to "parentid" in table "%1$s"', $table ), 0 ); $this->status( '' );

		foreach( $stmts as $column => $stmts )
		{
			$this->msg( sprintf( 'Checking column "%1$s"', $column ), 1 );

			if( $this->schema->tableExists( $table )
				&& $this->schema->columnExists( $table, $column ) === true
			) {
				$this->executeList( $stmts );
				$this->status( 'done' );
			} else {
				$this->status( 'OK' );
			}
		}
	}
protected function process ( array $ stmts ) { $ table = 'users_address' ; $ this -> msg ( sprintf ( 'Rename "refid" to "parentid" in table "%1$s"' , $ table ) , 0 ) ; $ this -> status ( '' ) ; foreach ( $ stmts as $ column => $ stmts ) { $ this -> msg ( sprintf ( 'Checking column "%1$s"' , $ column ) , 1 ) ; if ( $ this -> schema -> tableExists ( $ table ) && $ this -> schema -> columnExists ( $ table , $ column ) === true ) { $ this -> executeList ( $ stmts ) ; $ this -> status ( 'done' ) ; } else { $ this -> status ( 'OK' ) ; } } }
Changes the column in table

array string $stmts List of SQL statements for changing the columns
Changes the column in table