@ -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(),
@ -12,7 +12,7 @@ class m180821_100724_create_banners_places_table extends Migration
$this->createTable('{{%banners_places}}', [
@ -12,7 +12,7 @@ class m180729_170631_create_forms_table extends Migration
$this->createTable('{{%forms}}', [
@ -12,7 +12,7 @@ class m180729_170643_create_forms_messages_table extends Migration
$this->createTable('{{%forms_messages}}', [
@ -12,7 +12,7 @@ class m180827_210614_create_languages_table extends Migration
$this->createTable('{{%languages}}', [
@ -9,7 +9,7 @@ class m180727_110132_create_pages_table extends Migration
public function up()
$this->createTable('{{%pages}}', [
@ -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}}', [