-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
minor: use doctrine:schema:update
in ResetDatabase
#497
Conversation
…esetter Using schema:create always tries to create the non-default PostgreSQL schemas, which triggers an Exception when the schema already exists. (PostgreSQL schemas are not removed by schema:drop)
doctrine:schema:update
in ResetDatabase
Hi,
I also think you need to pass
|
Where in that method? It doesn't create the schema. |
yeah sorry, I misread, it is a |
Added the |
I'm just a bit worried of implications of this change: won't this be a big BC for people who have tables not managed by the ORM in the same db? because of this |
Not passing is deprecated and will be required in dbal 4? Not sure how we can avoid? Only add if dbal 4 is detected? |
Yeah it's a bit weird that this is now mandatory (or at least will be). I guess that how you handle this depends on what the goal of this package is then. I would think that resetting the database implies that it removes everything, especially as that is exactly what happens in the migrate mode. I'm also having troubles coming up with scenarios where testing would require keeping custom tables, but deleting orm managed ones. Anyway, I understand that it might be too high of a risk. And since I discovered that migrate mode also works for us, this really isn't a blocker for me anymore anyway. (Although I can imagine migrations being slower over time.) |
Maybe let's leave |
I think this is fixed now: we have an entity which uses a different don't hesitate to reopen your PR/issue if you still have problems with this |
Use schema:update in favour of schema:create when using the DatabaseResetter
Using schema:create always tries to create the non-default PostgreSQL schemas, which triggers an Exception when the schema already exists. (PostgreSQL schemas are not removed by schema:drop)
fixes #495