From 3b9ff1ab85ccfe1e7a2240881ad491447e75703c Mon Sep 17 00:00:00 2001 From: cp6 Date: Mon, 25 Jul 2022 10:38:06 +1000 Subject: [PATCH] Possible fix for YABs migration dropping multiple columns error Possible fix for YABs migration dropping multiple columns error --- .../2022_07_20_011250_add_columns_to_yabs_table.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/database/migrations/2022_07_20_011250_add_columns_to_yabs_table.php b/database/migrations/2022_07_20_011250_add_columns_to_yabs_table.php index c89e1c8..cc3dbfb 100644 --- a/database/migrations/2022_07_20_011250_add_columns_to_yabs_table.php +++ b/database/migrations/2022_07_20_011250_add_columns_to_yabs_table.php @@ -20,12 +20,7 @@ return new class extends Migration { public function down() { Schema::table('yabs', function (Blueprint $table) { - $table->dropColumn('uptime'); - $table->dropColumn('distro'); - $table->dropColumn('kernel'); - $table->dropColumn('swap'); - $table->dropColumn('swap_type', 2); - $table->dropColumn('swap_mb'); + $table->dropColumn(['uptime', 'distro', 'kernel', 'swap', 'swap_type', 'swap_mb']); }); } };