-
-
Notifications
You must be signed in to change notification settings - Fork 391
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
Add warning for diffCommand #941
Conversation
I think that you should be targeting the master branch |
That seems to be the reason why tests are failing |
@goetas I fix some stuffs, but I don't understand the static analysis failure. |
tests/Doctrine/Migrations/Tests/Tools/Console/Command/DiffCommandTest.php
Outdated
Show resolved
Hide resolved
Co-Authored-By: Andreas Braun <alcaeus@users.noreply.github.com>
I've restarted the check and it's green now. |
I'm not sure if we need that many warnings... I was just thinking about adding a a warning but keep the flow exactly as before. I'm this pr in the worst case we as to the user confirmation for two times... Opinions? |
IMO, you barely never want to create a new migration with non executed ones or executed non available one because it will generate some conflict between the migrations. The goal of adding these warning was to prevent the developper from messing up BEFORE the migrations was created. If you look at the issue doctrine/DoctrineMigrationsBundle#177, you'll have opinion. They wanted to not allow running diff command when not in sync, or to run migrate before diff. This is going in my way. |
I'm convinced then. Looks good to me. Can you add tests please for this feature? |
@goetas Tests added |
I'd like to see the |
@SenseException Sorry, I don't understand what you mean by the |
Please see #948 |
@goetas Should I close my PR in favor of yours ? |
yeah, I suggest to move the discussion to #948 |
Summary
Add warning when running diff command with executed unavalaible or non executed migrations.