db->driverName === 'mysql') { $tableOptions = 'CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci ENGINE=InnoDB'; } $this->createTable('{{%menu}}', [ 'id' => $this->primaryKey(), 'name' => $this->string(255)->notNull(), ], $tableOptions); } /** * {@inheritdoc} */ public function safeDown() { $this->dropTable('{{%menu}}'); } }