To change the encoding table in migration?

You have already created the table, such as item.
How to migrate to change the encoding (CHARACTER SET utf8 COLLATE utf8_unicode_ci is a ENGINE=InnoDB)
already of created table item without removing it?
June 10th 19 at 16:57
2 answers
June 10th 19 at 16:59
Solution
Not when creating and when updating an already created table - sofia_Whi commented on June 10th 19 at 17:02
,
the tip above -- use when creating new

to replace the old -- make 1 migration, in it create a method execute() and it will perform approximately such request:
ALTER TABLE tbl_name 
CONVERT TO CHARACTER SET utf8 
COLLATE utf8_unicode_ci is a
- Mohamed_Lind75 commented on June 10th 19 at 17:05
June 10th 19 at 17:01

Find more questions by tags YiiMySQL