I make field ENUM and the result is error when I use yii migrate/up
on CMD windows.
public function up()
{
$tableOptions = null;
if ($this-&
Actually the best way of working this and keeping your migrations clean would be by using some tool/helper like the one provided by the yii2mod team https://github.com/yii2mod/yii2-enum
this way you can build the enum functionality on code, works like a charm.
i.e. an enum for genderType
'Male',
self::FEMALE_TYPE => 'Female',
];
}
Use the following methods to access your Enum: