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

Migrate returns 0 as exit codes for empty plans as in 2.x #1015

Merged
merged 3 commits into from
Jun 21, 2020

Conversation

goetas
Copy link
Member

@goetas goetas commented Jun 20, 2020

Q A
Type bug
BC Break -
Fixed issues

Summary

In doctrine 2.x the migration command throws an exception if there
are not migrations to execute (unless the --allow-no-migrations
parameter is passed). In 3.0.0 this was misunderstood and the exception
was thrown even if there are registered migrations but there are no migrations to
execute for the current migration plan.
With this commit we are back to the 2.x strategy.

This commit also improves the error messages when the various aliases
can not be reached or are already reached.

goetas added 2 commits June 20, 2020 19:01
Re-enable alpha1 meaningful message when "latest" already reached.
In doctrine 2.x the migration command throws an exception if there
are not migrations to execute (unless the --allow-no-migrations
parameter is passed). In 3.0.0 this was misunderstood and the exception
was thrown even if there are registered migrations but there are no migrations to
execute for the current migration plan.
With this commit we are back to the 2.x strategy.

This commit also improves the error messages when the various aliases
can not be reached or are already reached.
@goetas goetas force-pushed the allow-no-migration branch from 562945f to bd985d3 Compare June 21, 2020 08:47
@goetas goetas merged commit 69eaf2c into doctrine:3.0.x Jun 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants