-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
Re-enable alpha1 meaningful message when "latest" already reached. #988
Conversation
lib/Doctrine/Migrations/Tools/Console/Command/MigrateCommand.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution.
I'm ok with this change, I've left only one suggestion
I implemented the suggested change. The message will be now like "Already at version "VERSION_ALIAS" ("VERSION")". Thanks a lot for the review @goetas ! |
Hi, I'm just wondering if it makes sense to throw a warning/error if all migrations have been executed? Also throwing a warning while passing the And thank you @bugalot for the message improvement :) |
Not sure why this isn't considered a BC break since it breaks CI without passing the (new) Please merge soon ;) |
@elkuku what makes you say it is not considered a BC-break? This is version 3.0.0… |
If all migrations have been executed, running the migrations command is a bit weird, and notifying the user about it makes sense IMO.
Good point, maybe it fits more the description for notice: https://github.com/php-fig/log/blob/master/Psr/Log/LoggerInterface.php#L82 |
Please kindly squash your commits together. If you don't, we'll try to remember to do it for you but it's best if you save us this trouble. How to do that?
|
Thanks! |
Re-enable alpha1 meaningful message when "latest" already reached.
Summary
Tries to fix the issue described in issue #987. To summarize, it is a proposal to get back the nice and clean
"[WARNING] Already at latest version"
when trying to perform a migration on a platform already at "latest" version.