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->);
|
1 answer
$this->addColumn('table', 'weekdays ', "SET(0,1,2,3,4,5,6) NOT NULL");
- Those. before asking this "very difficult" question, did you even bother to look in the search engine or in the help on Yii2? asked 10 minutes ago -> an answer was given 3 minutes ago - Vladimir Klykov
- @ Vladimir Klykov No. - Fitstd
- @Vladimir Klykov friend, and you did not try to open the documentation or search engine to find the answer to your "very difficult question" about the operator? ru.stackoverflow.com/questions/920140/… - Fitstd
- oneIt was not my question to begin with, but my answer =)))) the difference is not visible? Look at both of my questions and try to googling the answers to them outside of this forum =) and I will tell you more, try that in Google what to enter in Yandex
^=- if he agrees to search at all - exactly zero answers on the topic =) - Vladimir Klykov - oneI apologize if I hurt, just today it is the second primitive question on Yii2 that is googled in a minute and described (very well) in the documentation. - Vladimir Klykov
|