diff --git a/common/modules/banners/migrations/m180821_084231_create_banners_table.php b/common/modules/banners/migrations/m180821_084231_create_banners_table.php index 8bf947d..b507ac7 100644 --- a/common/modules/banners/migrations/m180821_084231_create_banners_table.php +++ b/common/modules/banners/migrations/m180821_084231_create_banners_table.php @@ -12,7 +12,7 @@ class m180821_084231_create_banners_table extends Migration */ public function safeUp() { - $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB'; + $tableOptions = 'CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE=InnoDB'; $this->createTable('{{%banners}}', [ 'id' => $this->primaryKey(), diff --git a/common/modules/banners/migrations/m180821_100724_create_banners_places_table.php b/common/modules/banners/migrations/m180821_100724_create_banners_places_table.php index aff0e3c..989b508 100644 --- a/common/modules/banners/migrations/m180821_100724_create_banners_places_table.php +++ b/common/modules/banners/migrations/m180821_100724_create_banners_places_table.php @@ -12,7 +12,7 @@ class m180821_100724_create_banners_places_table extends Migration */ public function safeUp() { - $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB'; + $tableOptions = 'CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE=InnoDB'; $this->createTable('{{%banners_places}}', [ 'id' => $this->primaryKey(), diff --git a/common/modules/forms/migrations/m180729_170631_create_forms_table.php b/common/modules/forms/migrations/m180729_170631_create_forms_table.php index a155be8..49ec3de 100644 --- a/common/modules/forms/migrations/m180729_170631_create_forms_table.php +++ b/common/modules/forms/migrations/m180729_170631_create_forms_table.php @@ -12,7 +12,7 @@ class m180729_170631_create_forms_table extends Migration */ public function safeUp() { - $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB'; + $tableOptions = 'CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE=InnoDB'; $this->createTable('{{%forms}}', [ 'id' => $this->primaryKey(), diff --git a/common/modules/forms/migrations/m180729_170643_create_forms_messages_table.php b/common/modules/forms/migrations/m180729_170643_create_forms_messages_table.php index 75f9c8b..edd576f 100644 --- a/common/modules/forms/migrations/m180729_170643_create_forms_messages_table.php +++ b/common/modules/forms/migrations/m180729_170643_create_forms_messages_table.php @@ -12,7 +12,7 @@ class m180729_170643_create_forms_messages_table extends Migration */ public function safeUp() { - $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB'; + $tableOptions = 'CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE=InnoDB'; $this->createTable('{{%forms_messages}}', [ 'id' => $this->primaryKey(), diff --git a/common/modules/languages/migrations/m180827_210614_create_languages_table.php b/common/modules/languages/migrations/m180827_210614_create_languages_table.php index d65eae4..53bd9db 100644 --- a/common/modules/languages/migrations/m180827_210614_create_languages_table.php +++ b/common/modules/languages/migrations/m180827_210614_create_languages_table.php @@ -12,7 +12,7 @@ class m180827_210614_create_languages_table extends Migration */ public function safeUp() { - $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB'; + $tableOptions = 'CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE=InnoDB'; $this->createTable('{{%languages}}', [ 'id' => $this->primaryKey(), diff --git a/common/modules/pages/migrations/m180727_110132_create_pages_table.php b/common/modules/pages/migrations/m180727_110132_create_pages_table.php index 8b9a837..ee3a552 100644 --- a/common/modules/pages/migrations/m180727_110132_create_pages_table.php +++ b/common/modules/pages/migrations/m180727_110132_create_pages_table.php @@ -9,7 +9,7 @@ class m180727_110132_create_pages_table extends Migration { public function up() { - $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB'; + $tableOptions = 'CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE=InnoDB'; $this->createTable('{{%pages}}', [ 'id' => $this->primaryKey(), diff --git a/common/modules/pages/migrations/m180824_202316_create_pages_lng_table.php b/common/modules/pages/migrations/m180824_202316_create_pages_lng_table.php index 637ae09..dcefe80 100644 --- a/common/modules/pages/migrations/m180824_202316_create_pages_lng_table.php +++ b/common/modules/pages/migrations/m180824_202316_create_pages_lng_table.php @@ -14,7 +14,7 @@ class m180824_202316_create_pages_lng_table extends Migration { $tableOptions = null; if ($this->db->driverName === 'mysql') { - $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB'; + $tableOptions = 'CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci ENGINE=InnoDB'; } $this->createTable('{{%pages_lng}}', [