public function addColumn($name, $type, array $attributes = [])
    {
        if ($this->scope == 'alter') {
            $command = 'ADD COLUMN';
        } else {
            $command = null;
        }

        $this->sqls[] = $this->composeAddColumn(
            trim($name, '`'),
            compact('name', 'type', 'attributes', 'command')
        );

        return $this;
    }
public function addColumn($name, $type, array $attributes = [])
    {
        if ($this->scope == 'alter') {
            $command = 'ADD COLUMN';
        } else {
            $command = null;
        }

        $this->sqls[] = $this->composeAddColumn(
            trim($name, '`'),
            compact('name', 'type', 'attributes', 'command')
        );

        return $this;
    }
public function addColumn ( $ name , $ type , array $ attributes = [ ] ) { if ( $ this -> scope == 'alter' ) { $ command = 'ADD COLUMN' ; } else { $ command = null ; } $ this -> sqls [ ] = $ this -> composeAddColumn ( trim ( $ name , '`' ) , compact ( 'name' , 'type' , 'attributes' , 'command' ) ) ; return $ this ; }
Add new column in the table

@param string $name
@param string $type
@param array $attributes

@return SQLGenerator
Add new column in the table