protected function getColumnSQLDeclaration(Column $column)
    {
        $columnDeclaration = $column->getName().' '.$column->getType()->getSQLDeclaration($this, $column->toArray());

        if ($column->isNotNull()) {
            $columnDeclaration .= ' NOT NULL';
        }

        if ($column->getDefault() !== null) {
            $default = $column->getType()->convertToDatabaseValue($column->getDefault(), $this);
            $columnDeclaration .= ' DEFAULT '.$this->quote($default);
        }

        if ($this->supportInlineColumnComments()
            && ($this->hasCustomType($column->getType()->getName())
            || ($column->getComment() !== null))
        ) {
            $columnDeclaration .= ' COMMENT '.$this->getColumnCommentSQLDeclaration($column);
        }

        return $columnDeclaration;
    }
protected function getColumnSQLDeclaration(Column $column)
    {
        $columnDeclaration = $column->getName().' '.$column->getType()->getSQLDeclaration($this, $column->toArray());

        if ($column->isNotNull()) {
            $columnDeclaration .= ' NOT NULL';
        }

        if ($column->getDefault() !== null) {
            $default = $column->getType()->convertToDatabaseValue($column->getDefault(), $this);
            $columnDeclaration .= ' DEFAULT '.$this->quote($default);
        }

        if ($this->supportInlineColumnComments()
            && ($this->hasCustomType($column->getType()->getName())
            || ($column->getComment() !== null))
        ) {
            $columnDeclaration .= ' COMMENT '.$this->getColumnCommentSQLDeclaration($column);
        }

        return $columnDeclaration;
    }
protected function getColumnSQLDeclaration ( Column $ column ) { $ columnDeclaration = $ column -> getName ( ) . ' ' . $ column -> getType ( ) -> getSQLDeclaration ( $ this , $ column -> toArray ( ) ) ; if ( $ column -> isNotNull ( ) ) { $ columnDeclaration .= ' NOT NULL' ; } if ( $ column -> getDefault ( ) !== null ) { $ default = $ column -> getType ( ) -> convertToDatabaseValue ( $ column -> getDefault ( ) , $ this ) ; $ columnDeclaration .= ' DEFAULT ' . $ this -> quote ( $ default ) ; } if ( $ this -> supportInlineColumnComments ( ) && ( $ this -> hasCustomType ( $ column -> getType ( ) -> getName ( ) ) || ( $ column -> getComment ( ) !== null ) ) ) { $ columnDeclaration .= ' COMMENT ' . $ this -> getColumnCommentSQLDeclaration ( $ column ) ; } return $ columnDeclaration ; }
Gets the column SQL declaration.

@param \Fridge\DBAL\Schema\Column $column The column.

@return string The column SQL declaration.
Gets the column SQL declaration .