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
Merged

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

merged 1 commit into from
Oct 18, 2019

Conversation

jerguslejko
Copy link
Contributor

@jerguslejko 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!

@taylorotwell taylorotwell merged commit 19c2a10 into laravel:6.x Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants