在 Laravel 中安全地移除遷移 - Safely remove migration In Laravel

問題:

In Laravel, there appears to be a command for creating a migration, but not removing.在 Laravel 中,似乎有一個創建遷移的命令,但沒有刪除。

Create migration command:創建遷移命令:

php artisan migrate:make create_users_table

If I want to delete the migration, can I just safely delete the corresponding migrations file within the database/migrations folder?如果我想刪除遷移,我可以安全地刪除數據庫/遷移文件夾中的相應遷移文件嗎?

Migrations file:遷移文件:

2013_05_31_220658_create_users_table

解決方案:

參考一: https://stackoom.com/question/18n1Z
參考二: Safely remove migration In Laravel
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章