Categories
Mysql SET in Yii2 migrations?
Tell me, please, when adding a new field to the table using migration, I want to make the type SET (0,1,2,3). How to specify it in yii2 ?$this->addColumn('table', 'weekdays', $this->);
$this->addColumn('table', 'weekdays', $this->);
Answer the question
In order to leave comments, you need to log in
$this->addColumn('table', 'weekdays', 'SET(0,1,2,3)');
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question