1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 15:33:44 +01:00

Possible fix for YABs migration dropping multiple columns error

Possible fix for YABs migration dropping multiple columns error
This commit is contained in:
cp6 2022-07-25 10:38:06 +10:00
parent 59b3138dfb
commit 3b9ff1ab85

View File

@ -20,12 +20,7 @@ return new class extends Migration {
public function down() public function down()
{ {
Schema::table('yabs', function (Blueprint $table) { Schema::table('yabs', function (Blueprint $table) {
$table->dropColumn('uptime'); $table->dropColumn(['uptime', 'distro', 'kernel', 'swap', 'swap_type', 'swap_mb']);
$table->dropColumn('distro');
$table->dropColumn('kernel');
$table->dropColumn('swap');
$table->dropColumn('swap_type', 2);
$table->dropColumn('swap_mb');
}); });
} }
}; };