Skip to content

Add support for enum #29

@siamskoi

Description

@siamskoi

Database: > Postgres 9.1
Code for migration:

->addColumn('status', 'enum', [
    'nullable' => false,
    'default'  => 'active',
    'values'   => [
        'active',
        'inactive',
        ...
    ]
])

Actual result:
A table is created with a string type field and a constrain to check the values of this field.

Expected Result:
Created enum type (what should be name of new type ?? ) and filed with new enum type.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions