Laravel Migration with --safe flag #47523
-
Few days back i created a PR. In that user can runs migrate command with --safe flag with this user ables to see the list of remaining migrations and control will ask user to do you want to run all these migrations or not. It's basically a safe check before run migration blindly. Is it helpful or not. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I think this would be really useful, especially when you rolled back migrations and are now unsure which migrations still need to be run |
Beta Was this translation helpful? Give feedback.
-
nvm, you can use |
Beta Was this translation helpful? Give feedback.
-
Hmmm its helpful, thank you. |
Beta Was this translation helpful? Give feedback.
nvm, you can use
php artisan migrate:status
to see which migrations are already run an which are about to be run.