[增添]增加了down函数 migrate reset时自动无痛删表

This commit is contained in:
makotocc0107
2024-09-03 13:46:16 +08:00
committed by Coding
parent 525ad0b664
commit 04f1cec167
2 changed files with 5 additions and 18 deletions

View File

@@ -21,4 +21,9 @@ return new class extends Migration
$table->unique(['group', 'name']);
});
}
public function down(): void
{
Schema::dropIfExists('settings');
}
};