src/Builder/TypeTableBuilder.php
private function prepareFieldStatement(ScalarField $field)
    {
        $result = $this->getConnection()->escapeFieldName($field->getName()) . ' ' . $this->prepareTypeDefinition($field);

        if ($field->getDefaultValue() !== null) {
            $result .= ' NOT NULL';
        }

        if (!($field instanceof IntegerField && $field->getName() == 'id')) {
            $result .= ' DEFAULT ' . $this->prepareDefaultValue($field);
        }

        return $result;
    }
private function prepareFieldStatement(ScalarField $field)
    {
        $result = $this->getConnection()->escapeFieldName($field->getName()) . ' ' . $this->prepareTypeDefinition($field);

        if ($field->getDefaultValue() !== null) {
            $result .= ' NOT NULL';
        }

        if (!($field instanceof IntegerField && $field->getName() == 'id')) {
            $result .= ' DEFAULT ' . $this->prepareDefaultValue($field);
        }

        return $result;
    }
private function prepareFieldStatement ( ScalarField $ field ) { $ result = $ this -> getConnection ( ) -> escapeFieldName ( $ field -> getName ( ) ) . ' ' . $ this -> prepareTypeDefinition ( $ field ) ; if ( $ field -> getDefaultValue ( ) !== null ) { $ result .= ' NOT NULL' ; } if ( ! ( $ field instanceof IntegerField && $ field -> getName ( ) == 'id' ) ) { $ result .= ' DEFAULT ' . $ this -> prepareDefaultValue ( $ field ) ; } return $ result ; }
Prepare field statement based on the field settings.

@param  ScalarField $field
@return string
Prepare field statement based on the field settings .