src/Phinx/Db/Adapter/PostgresAdapter.php
protected function getDefaultValueDefinition($default, $columnType = null)
    {
        if (is_string($default) && 'CURRENT_TIMESTAMP' !== $default) {
            $default = $this->getConnection()->quote($default);
        } elseif (is_bool($default)) {
            $default = $this->castToBool($default);
        } elseif ($columnType === static::PHINX_TYPE_BOOLEAN) {
            $default = $this->castToBool((bool)$default);
        }

        return isset($default) ? 'DEFAULT ' . $default : '';
    }
protected function getDefaultValueDefinition($default, $columnType = null)
    {
        if (is_string($default) && 'CURRENT_TIMESTAMP' !== $default) {
            $default = $this->getConnection()->quote($default);
        } elseif (is_bool($default)) {
            $default = $this->castToBool($default);
        } elseif ($columnType === static::PHINX_TYPE_BOOLEAN) {
            $default = $this->castToBool((bool)$default);
        }

        return isset($default) ? 'DEFAULT ' . $default : '';
    }
protected function getDefaultValueDefinition ( $ default , $ columnType = null ) { if ( is_string ( $ default ) && 'CURRENT_TIMESTAMP' !== $ default ) { $ default = $ this -> getConnection ( ) -> quote ( $ default ) ; } elseif ( is_bool ( $ default ) ) { $ default = $ this -> castToBool ( $ default ) ; } elseif ( $ columnType === static :: PHINX_TYPE_BOOLEAN ) { $ default = $ this -> castToBool ( ( bool ) $ default ) ; } return isset ( $ default ) ? 'DEFAULT ' . $ default : '' ; }
Get the defintion for a `DEFAULT` statement.

@param mixed $default default value
@param string $columnType column type added
@return string
Get the defintion for a DEFAULT statement .