src/Driver/Postgres/Schema/PostgresColumn.php
private static function resolveEnum(DriverInterface $driver, PostgresColumn $column)
    {
        $range = $driver->query('SELECT enum_range(NULL::' . $column->type . ')')->fetchColumn(0);

        $column->enumValues = explode(',', substr($range, 1, -1));

        if (!empty($column->defaultValue)) {
            //In database: 'value'::enumType
            $column->defaultValue = substr(
                $column->defaultValue,
                1,
                strpos($column->defaultValue, $column->type) - 4
            );
        }
    }
private static function resolveEnum(DriverInterface $driver, PostgresColumn $column)
    {
        $range = $driver->query('SELECT enum_range(NULL::' . $column->type . ')')->fetchColumn(0);

        $column->enumValues = explode(',', substr($range, 1, -1));

        if (!empty($column->defaultValue)) {
            //In database: 'value'::enumType
            $column->defaultValue = substr(
                $column->defaultValue,
                1,
                strpos($column->defaultValue, $column->type) - 4
            );
        }
    }
private static function resolveEnum ( DriverInterface $ driver , PostgresColumn $ column ) { $ range = $ driver -> query ( 'SELECT enum_range(NULL::' . $ column -> type . ')' ) -> fetchColumn ( 0 ) ; $ column -> enumValues = explode ( ',' , substr ( $ range , 1 , - 1 ) ) ; if ( ! empty ( $ column -> defaultValue ) ) { //In database: 'value'::enumType $ column -> defaultValue = substr ( $ column -> defaultValue , 1 , strpos ( $ column -> defaultValue , $ column -> type ) - 4 ) ; } }
Resolve native ENUM type if presented.

@param DriverInterface $driver
@param PostgresColumn  $column
Resolve native ENUM type if presented .