Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.x] Use exit code [1] when migration table not found #30321

Merged
merged 1 commit into from Oct 18, 2019

Conversation

@jerguslejko
Copy link
Contributor

jerguslejko commented Oct 17, 2019

This PR modifies migrate:status command to return exit code 1 when the migrations table is not found.

Motivation: I plan on using this as a way to see if the database has been migrated at least once. This will be useful when deploying to a new staging environment (when I'm deploying for the first time, I want to run seeders as well).

Thanks for your time!

@jerguslejko jerguslejko force-pushed the jerguslejko:patch-1 branch from 98831a7 to 08e30cf Oct 17, 2019
@taylorotwell taylorotwell merged commit 19c2a10 into laravel:6.x Oct 18, 2019
2 checks passed
2 checks passed
continuous-integration/styleci/pr The analysis has passed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.