Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for enum #29

Open
siamskoi opened this issue Jan 4, 2022 · 0 comments
Open

Add support for enum #29

siamskoi opened this issue Jan 4, 2022 · 0 comments
Labels
type:enhancement Enhancement.

Comments

@siamskoi
Copy link

siamskoi commented Jan 4, 2022

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.

@roxblnfk roxblnfk added this to Cycle Jan 4, 2022
@roxblnfk roxblnfk moved this to Backlog in Cycle Jan 4, 2022
@roxblnfk roxblnfk added the type:enhancement Enhancement. label Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Enhancement.
Projects
Status: Backlog
Development

No branches or pull requests

2 participants