Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

In Rails, I can run:

rake db:migrate:status

But how about Laravel? How would I know which migrations will run when I do:

php artisan migrate

I am on a production server, and I need to make sure that I won't break things.

question from:https://stackoverflow.com/questions/33803488/how-to-check-migration-status

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
574 views
Welcome To Ask or Share your Answers For Others

1 Answer

It's the exact same way with artisan, just add :status:

php artisan migrate:status

In the future you can run just php artisan and it will list all available commands with a short description for each one. If you want more details about a command, like usage and what options it accepts, you can run php artisan help [command]. So for your command it would be:

php artisan help migrate:status

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...