|
|
@ -17,7 +17,7 @@ class m180827_195932_set_blog_unicode_collate extends Migration |
|
|
|
$db->createCommand('SET FOREIGN_KEY_CHECKS=0;')->execute(); |
|
|
|
$db->createCommand('SET FOREIGN_KEY_CHECKS=0;')->execute(); |
|
|
|
|
|
|
|
|
|
|
|
foreach ($tables as $table) { |
|
|
|
foreach ($tables as $table) { |
|
|
|
$db->createCommand( "ALTER TABLE `$table` CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci" )->execute(); |
|
|
|
$db->createCommand("ALTER TABLE `$table` CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci")->execute(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$db->createCommand('SET FOREIGN_KEY_CHECKS=1;')->execute(); |
|
|
|
$db->createCommand('SET FOREIGN_KEY_CHECKS=1;')->execute(); |
|
|
|