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.
Database: > Postgres 9.1
Code for migration:
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.