Browse Source

MySqL migrations to utf8mb4 2

master
Error202 4 years ago
parent
commit
0dfad63b0e
  1. 2
      common/modules/banners/migrations/m180821_084231_create_banners_table.php
  2. 2
      common/modules/banners/migrations/m180821_100724_create_banners_places_table.php
  3. 2
      common/modules/forms/migrations/m180729_170631_create_forms_table.php
  4. 2
      common/modules/forms/migrations/m180729_170643_create_forms_messages_table.php
  5. 2
      common/modules/languages/migrations/m180827_210614_create_languages_table.php
  6. 2
      common/modules/pages/migrations/m180727_110132_create_pages_table.php
  7. 2
      common/modules/pages/migrations/m180824_202316_create_pages_lng_table.php

2
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() 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}}', [ $this->createTable('{{%banners}}', [
'id' => $this->primaryKey(), 'id' => $this->primaryKey(),

2
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() 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}}', [ $this->createTable('{{%banners_places}}', [
'id' => $this->primaryKey(), 'id' => $this->primaryKey(),

2
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() 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}}', [ $this->createTable('{{%forms}}', [
'id' => $this->primaryKey(), 'id' => $this->primaryKey(),

2
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() 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}}', [ $this->createTable('{{%forms_messages}}', [
'id' => $this->primaryKey(), 'id' => $this->primaryKey(),

2
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() 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}}', [ $this->createTable('{{%languages}}', [
'id' => $this->primaryKey(), 'id' => $this->primaryKey(),

2
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() 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}}', [ $this->createTable('{{%pages}}', [
'id' => $this->primaryKey(), 'id' => $this->primaryKey(),

2
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; $tableOptions = null;
if ($this->db->driverName === 'mysql') { 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}}', [ $this->createTable('{{%pages_lng}}', [

Loading…
Cancel
Save