問題:
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