-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Revert #17299 #18328
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
Comments
To be honest, I don't fully understand your issue. You say that we should remove this tip, but the resources that you linked (like symfony/symfony#37626 (comment)) seem to indicate that we must have that tip. Could you please elaborate your issue a bit? Thanks! |
Sure. The tip in #17299 explains how to prevent Doctrine Migrations from removing the Messenger table from the schema. Doctrine's schema tool is unaware of the Messenger's table as it is not part of the application's schema and normally will try to remove it. The provided tip tries to "hide" Messenger's table from the schema tool by filtering it out using a schema filter. But symfony/symfony#36655 adds support for automatic adding required SQL to the schema. Because of this Doctrine's schema tool will see the Messenger's table SQL as part of the application's schema and will not include table removal in the migration. Effectively it means that there is no need to hide Messenger's table from the schema tool because it is automatically included in the application's schema. And because of this, the tip has no practical meaning and can be removed. I submitted this issue several months ago, so I may forget some details of the original intention. It is also possible that I misunderstood something. But at least from the practical point of view Doctrine Migrations does not attempt to remove Mesenger's table nowadays without schema filter from the tip. |
Uh oh!
There was an error while loading. Please reload this page.
According to a description of #17299 and symfony/symfony#37626 (comment) information about manual filtering of the Doctrine migrations table was restored in documentation because it was unclear why it was removed previously.
It was removed because of the implementation of automatic registration of Messenger's table schema in Doctrine schema in symfony/symfony#36655 which is landed in Symfony 5.1.
Because of this, having this tip in the Symfony documentation is not actual and misleading. I would like to propose to revert #17299 to remove it again.
The text was updated successfully, but these errors were encountered: