public function getModifyColumnsDDL($columnDiffs)
    {
        $lines = [];
        $table = null;
        foreach ($columnDiffs as $columnDiff) {
            $toColumn = $columnDiff->getToColumn();
            if (null === $table) {
                $table = $toColumn->getTable();
            }
            $lines[] = $this->getColumnDDL($toColumn);
        }

        $sep = ",
    ";

        $pattern = "
ALTER TABLE %s MODIFY
(
    %s
);
";

        return sprintf($pattern,
            $this->quoteIdentifier($table->getName()),
            implode($sep, $lines)
        );
    }
public function getModifyColumnsDDL($columnDiffs)
    {
        $lines = [];
        $table = null;
        foreach ($columnDiffs as $columnDiff) {
            $toColumn = $columnDiff->getToColumn();
            if (null === $table) {
                $table = $toColumn->getTable();
            }
            $lines[] = $this->getColumnDDL($toColumn);
        }

        $sep = ",
    ";

        $pattern = "
ALTER TABLE %s MODIFY
(
    %s
);
";

        return sprintf($pattern,
            $this->quoteIdentifier($table->getName()),
            implode($sep, $lines)
        );
    }
public function getModifyColumnsDDL ( $ columnDiffs ) { $ lines = [ ] ; $ table = null ; foreach ( $ columnDiffs as $ columnDiff ) { $ toColumn = $ columnDiff -> getToColumn ( ) ; if ( null === $ table ) { $ table = $ toColumn -> getTable ( ) ; } $ lines [ ] = $ this -> getColumnDDL ( $ toColumn ) ; } $ sep = ",
    " ; $ pattern = "
ALTER TABLE %s MODIFY
(
    %s
);
" ; return sprintf ( $ pattern , $ this -> quoteIdentifier ( $ table -> getName ( ) ) , implode ( $ sep , $ lines ) ) ; }
Builds the DDL SQL to modify a list of columns

@param  ColumnDiff[] $columnDiffs
@return string
Builds the DDL SQL to modify a list of columns