db->driverName === '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'; } $this->createTable('{{%user_sold_item}}', [ 'id_user_sold_item' => $this->primaryKey(), 'id_user' => $this->integer(11) , 'id_transfer' => $this->integer(11) , ], $tableOptions); } public function down() { echo "m151005_054611_add__user_sold_item cannot be reverted.\n"; return false; } /* // Use safeUp/safeDown to run migration code within a transaction public function safeUp() { } public function safeDown() { } */ }