src/Neutrino/Database/Schema/Dialect/PostgresqlTrait.php
public function typeEnum(Fluent $column)
    {
        $values = array_map(function ($a) {
            return "'{$a}'";
        }, $column->get('values'));

        $maxlen = 0;
        foreach ($values as $value) {
            $maxlen = max($maxlen, strlen($value));
        }

        return [
            'type'          => "varchar($maxlen) check (\"{$column->get('name')}\" in (" . implode(', ', $values) . '))',
            'typeReference' => -1
        ];
    }
public function typeEnum(Fluent $column)
    {
        $values = array_map(function ($a) {
            return "'{$a}'";
        }, $column->get('values'));

        $maxlen = 0;
        foreach ($values as $value) {
            $maxlen = max($maxlen, strlen($value));
        }

        return [
            'type'          => "varchar($maxlen) check (\"{$column->get('name')}\" in (" . implode(', ', $values) . '))',
            'typeReference' => -1
        ];
    }
Create the column type definition for a enum type.

@param \Neutrino\Support\Fluent $column

@return array