[增添]增加了down函数 migrate reset时自动无痛删表
This commit is contained in:
@@ -21,4 +21,9 @@ return new class extends Migration
|
||||
$table->unique(['group', 'name']);
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('settings');
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user