From 7f50daabdcc6e8a47e003d33cf0c56b12495cf13 Mon Sep 17 00:00:00 2001 From: Recca Tsai Date: Sun, 20 Sep 2020 23:35:18 +0800 Subject: [PATCH] fix test bug when use sqlite database SQLite doesn't support multiple calls to dropColumn / renameColumn in a single modification. --- ...2014_10_12_200000_add_two_factor_columns_to_users_table.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/database/migrations/2014_10_12_200000_add_two_factor_columns_to_users_table.php b/database/migrations/2014_10_12_200000_add_two_factor_columns_to_users_table.php index 4a34f839..f4500c98 100644 --- a/database/migrations/2014_10_12_200000_add_two_factor_columns_to_users_table.php +++ b/database/migrations/2014_10_12_200000_add_two_factor_columns_to_users_table.php @@ -32,8 +32,7 @@ public function up() public function down() { Schema::table('users', function (Blueprint $table) { - $table->dropColumn('two_factor_secret'); - $table->dropColumn('two_factor_recovery_codes'); + $table->dropColumn('two_factor_secret', 'two_factor_recovery_codes'); }); } }