Переход на кодировку utf8md4_unicode_ci

This commit is contained in:
ErickSkrauch
2017-12-23 00:32:36 +03:00
parent 43b69aed0b
commit d2f3a05b31
5 changed files with 44 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ class Migration extends YiiMigration {
public function getTableOptions($engine = 'InnoDB') {
$tableOptions = null;
if ($this->db->driverName === 'mysql') {
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=' . $engine;
$tableOptions = 'CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE=' . $engine;
}
return $tableOptions;