-
-
Notifications
You must be signed in to change notification settings - Fork 215
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
After v3.4 all migrations shown as not executed in dev toolbar #584
Comments
Here is the diff: 3.3.1...3.4.0 Maybe the change I did in Can you please dump
Or maybe it's the changes I did in in |
I experience the same problem after upgrade 3.3.1 to 3.4.0. The array at line 35 of the file is an empty array. |
Ok then I guess that change is not the culprit 🤔 |
Then dumping in MigrationsFlattener.php:
|
Can you try following https://dev.to/greg0ire/bisecting-vendors-12kd to pinpoint the first bad commit? |
This was mentiont on the original issue, I just found the exact comment. Not sure if it helps, but here it is: |
Oh right, thanks for digging that up. I'll revert my MR and release 3.4.1 |
As far as i have seen now:
the function "getExecutedMigrations" from doctrine migration, the initial "$this->isInitialized" is false so an empty list is returned. |
Or maybe, instead of reverting, the listener could be improved to detect that we are in HTTP context. When in HTTP context, it could disable itself 🤔 Regarding Doctrine commands such as
|
Its not only about the console command, i guess. In every request the migrations are shown as not executed. |
Then i dump this:
this is the result:
|
Yes, and again, the listener should not just listen to console events, but also to http events, and disable itself. |
Okay the __invoke function of the EventListener is called with enabled is set to true. |
Yes. So we have to add another function (or just make Related docs: https://symfony.com/doc/current/event_dispatcher.html |
- migrations are not properly resolved as executed - see doctrine/DoctrineMigrationsBundle#584
Hi, |
@eltharin can't look into it until next week, but I think the fixes should be easy, in case you want to try |
Ok no problem, |
OK, I found the problem, here are my proposes: |
Bug Report
Just checked out the new release and all of my past migrations shown as not executed:
Summary
cache cleared, metadatastorage synced, migration table contains all 158 entry. The toolbar still shows everything as new
Current behavior
Expected behavior
How to reproduce
The text was updated successfully, but these errors were encountered: