M
M
Messi2018-12-27 14:59:33
Yii
Messi, 2018-12-27 14:59:33

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->);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Bay, 2018-12-27
@FitTech

$this->addColumn('table', 'weekdays', 'SET(0,1,2,3)');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question