lib/Doctrine/DBAL/Platforms/DB2Platform.php
private function gatherAlterColumnSQL(Identifier $table, ColumnDiff $columnDiff, array &$sql, array &$queryParts)
    {
        $alterColumnClauses = $this->getAlterColumnClausesSQL($columnDiff);

        if (empty($alterColumnClauses)) {
            return;
        }

        // If we have a single column alteration, we can append the clause to the main query.
        if (count($alterColumnClauses) === 1) {
            $queryParts[] = current($alterColumnClauses);

            return;
        }

        // We have multiple alterations for the same column,
        // so we need to trigger a complete ALTER TABLE statement
        // for each ALTER COLUMN clause.
        foreach ($alterColumnClauses as $alterColumnClause) {
            $sql[] = 'ALTER TABLE ' . $table->getQuotedName($this) . ' ' . $alterColumnClause;
        }
    }
private function gatherAlterColumnSQL(Identifier $table, ColumnDiff $columnDiff, array &$sql, array &$queryParts)
    {
        $alterColumnClauses = $this->getAlterColumnClausesSQL($columnDiff);

        if (empty($alterColumnClauses)) {
            return;
        }

        // If we have a single column alteration, we can append the clause to the main query.
        if (count($alterColumnClauses) === 1) {
            $queryParts[] = current($alterColumnClauses);

            return;
        }

        // We have multiple alterations for the same column,
        // so we need to trigger a complete ALTER TABLE statement
        // for each ALTER COLUMN clause.
        foreach ($alterColumnClauses as $alterColumnClause) {
            $sql[] = 'ALTER TABLE ' . $table->getQuotedName($this) . ' ' . $alterColumnClause;
        }
    }
private function gatherAlterColumnSQL ( Identifier $ table , ColumnDiff $ columnDiff , array & $ sql , array & $ queryParts ) { $ alterColumnClauses = $ this -> getAlterColumnClausesSQL ( $ columnDiff ) ; if ( empty ( $ alterColumnClauses ) ) { return ; } // If we have a single column alteration, we can append the clause to the main query. if ( count ( $ alterColumnClauses ) === 1 ) { $ queryParts [ ] = current ( $ alterColumnClauses ) ; return ; } // We have multiple alterations for the same column, // so we need to trigger a complete ALTER TABLE statement // for each ALTER COLUMN clause. foreach ( $ alterColumnClauses as $ alterColumnClause ) { $ sql [ ] = 'ALTER TABLE ' . $ table -> getQuotedName ( $ this ) . ' ' . $ alterColumnClause ; } }
Gathers the table alteration SQL for a given column diff.

@param Identifier $table      The table to gather the SQL for.
@param ColumnDiff $columnDiff The column diff to evaluate.
@param string[]   $sql        The sequence of table alteration statements to fill.
@param mixed[]    $queryParts The sequence of column alteration clauses to fill.
Gathers the table alteration SQL for a given column diff .