Skip to content

Commit

Permalink
Adjust migration charset
Browse files Browse the repository at this point in the history
  • Loading branch information
darkdef committed Jan 11, 2021
1 parent 1851ee3 commit 03bd0ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/migrations/M201104110256CreateMessageSource.php
Expand Up @@ -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}}', [
Expand Down

0 comments on commit 03bd0ef

Please sign in to comment.