lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php
protected function getAlterTableChangeColumnClause(ColumnDiff $columnDiff)
    {
        $column = $columnDiff->column;

        // Do not return alter clause if only comment has changed.
        if (! ($columnDiff->hasChanged('comment') && count($columnDiff->changedProperties) === 1)) {
            $columnAlterationClause = 'ALTER ' .
                $this->getColumnDeclarationSQL($column->getQuotedName($this), $column->toArray());

            if ($columnDiff->hasChanged('default') && $column->getDefault() === null) {
                $columnAlterationClause .= ', ALTER ' . $column->getQuotedName($this) . ' DROP DEFAULT';
            }

            return $columnAlterationClause;
        }

        return null;
    }
protected function getAlterTableChangeColumnClause(ColumnDiff $columnDiff)
    {
        $column = $columnDiff->column;

        // Do not return alter clause if only comment has changed.
        if (! ($columnDiff->hasChanged('comment') && count($columnDiff->changedProperties) === 1)) {
            $columnAlterationClause = 'ALTER ' .
                $this->getColumnDeclarationSQL($column->getQuotedName($this), $column->toArray());

            if ($columnDiff->hasChanged('default') && $column->getDefault() === null) {
                $columnAlterationClause .= ', ALTER ' . $column->getQuotedName($this) . ' DROP DEFAULT';
            }

            return $columnAlterationClause;
        }

        return null;
    }
protected function getAlterTableChangeColumnClause ( ColumnDiff $ columnDiff ) { $ column = $ columnDiff -> column ; // Do not return alter clause if only comment has changed. if ( ! ( $ columnDiff -> hasChanged ( 'comment' ) && count ( $ columnDiff -> changedProperties ) === 1 ) ) { $ columnAlterationClause = 'ALTER ' . $ this -> getColumnDeclarationSQL ( $ column -> getQuotedName ( $ this ) , $ column -> toArray ( ) ) ; if ( $ columnDiff -> hasChanged ( 'default' ) && $ column -> getDefault ( ) === null ) { $ columnAlterationClause .= ', ALTER ' . $ column -> getQuotedName ( $ this ) . ' DROP DEFAULT' ; } return $ columnAlterationClause ; } return null ; }
Returns the SQL clause for altering a column in a table alteration.

This method returns null in case that only the column comment has changed.
Changes in column comments have to be handled differently.

@param ColumnDiff $columnDiff The diff of the column to alter.

@return string|null
Returns the SQL clause for altering a column in a table alteration .