From 03bd0ef8a0f496aa8c13c1703a879fab663b410f Mon Sep 17 00:00:00 2001 From: Valerii Gorbachev Date: Mon, 11 Jan 2021 22:59:42 +0300 Subject: [PATCH] Adjust migration charset --- src/migrations/M201104110256CreateMessageSource.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/migrations/M201104110256CreateMessageSource.php b/src/migrations/M201104110256CreateMessageSource.php index 4cdd7fb..1f1e388 100644 --- a/src/migrations/M201104110256CreateMessageSource.php +++ b/src/migrations/M201104110256CreateMessageSource.php @@ -17,8 +17,7 @@ public function up(): void $tableOptions = null; if ($this->db->getDriverName() === 'mysql') { - // http://stackoverflow.com/questions/766809/whats-the-difference-between-utf8-general-ci-and-utf8-unicode-ci - $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB'; + $tableOptions = 'CHARACTER SET utf8mb4 COLLATE utf8mb4_bin ENGINE=InnoDB'; } $this->createTable('{{%source_message}}', [