src/Migration/Adapter/Generator/PhinxMySqlGenerator.php
protected function getColumnUpdate(array $schema, string $table, string $columnName): string
    {
        $columns = $schema['tables'][$table]['columns'];
        $columnData = $columns[$columnName];

        $phinxType = $this->getPhinxColumnType($columnData);
        $columnAttributes = $this->getPhinxColumnOptions($phinxType, $columnData, $columns);
        $result = sprintf("%s->changeColumn('%s', '%s', $columnAttributes)", $this->ind2, $columnName, $phinxType, $columnAttributes);

        return $result;
    }
protected function getColumnUpdate(array $schema, string $table, string $columnName): string
    {
        $columns = $schema['tables'][$table]['columns'];
        $columnData = $columns[$columnName];

        $phinxType = $this->getPhinxColumnType($columnData);
        $columnAttributes = $this->getPhinxColumnOptions($phinxType, $columnData, $columns);
        $result = sprintf("%s->changeColumn('%s', '%s', $columnAttributes)", $this->ind2, $columnName, $phinxType, $columnAttributes);

        return $result;
    }
protected function getColumnUpdate ( array $ schema , string $ table , string $ columnName ) : string { $ columns = $ schema [ 'tables' ] [ $ table ] [ 'columns' ] ; $ columnData = $ columns [ $ columnName ] ; $ phinxType = $ this -> getPhinxColumnType ( $ columnData ) ; $ columnAttributes = $ this -> getPhinxColumnOptions ( $ phinxType , $ columnData , $ columns ) ; $ result = sprintf ( "%s->changeColumn('%s', '%s', $columnAttributes)" , $ this -> ind2 , $ columnName , $ phinxType , $ columnAttributes ) ; return $ result ; }
Generate column update.

@param array $schema
@param string $table
@param string $columnName

@return string
Generate column update .