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
Command "migration:show" should not return a non-zero exit code when there are unapplied migrations #7349
Comments
Same issue. How did you manage to solve this ? |
I haven't yet. A PR should be created that moves this behaviour behind a CLI argument. It would be a breaking change, but it seems very wrong to me as it is now. |
I'm having the exact same issue!!!! |
This one applies for
Maybe we can even throw a custom error ? Something like @imnotjames thought ? |
Same issues for postgres |
same issue here.(postgres) |
Issue Description
The
migration:show
command is returning a non-zero exit code when there are unapplied migrations, but this behaviour makes no sense, especially outside of a CI environment.It should return a 0 exit code by default, and a CLI argument could be used to force a non-zero code.
Expected Behavior
Clean output with no errors (i.e. the exit code should be 0 by default).
Actual Behavior
If I simply wish to view a list of migrations, I get the following output:
This is a mess. It's difficult to even see the list of migrations.
Steps to Reproduce
migration:show
command.My Environment
Additional Context
#4173 (comment)
#4173 (comment)
#4173 (comment)
Relevant Database Driver(s)
aurora-data-api
aurora-data-api-pg
better-sqlite3
cockroachdb
cordova
expo
mongodb
mysql
nativescript
oracle
postgres
react-native
sap
sqlite
sqlite-abstract
sqljs
sqlserver
Are you willing to resolve this issue by submitting a Pull Request?
/cc @Juddling
The text was updated successfully, but these errors were encountered: