Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add "--dump-sql" option to "doctrine:fixtures:load" command #60
i am writing a deployment tool for deploying our software. the tool shouldn´t do all the db stuff on its own, we want to do this manually after the installation is complete. for this it would be nice when the fixtures command will dump the sqls like the schema:update command.
This might be difficult to implement, but if possible I would like it.
I'm trying to build an application to run in Docker. For the MySQL container, I want to be able to generate the SQL scripts for updating the schema and loading the fixtures. The SQL files can then be
Apologies that the above is very Docker-specific. Another way to say it is, I want to be able to create the MySQL schema using a copy of the Symfony application, even if that application isn't connected to MySQL at the time.
It works for the schema:
(this command doesn't even notice if the DB doesn't exist, I get the SQL anyway)
There seems to be no equivalent with
So, "nice to have", but would be limited anyway.
For my use case above, I'll need to achieve this some other way. Any ideas?
This would require a massive refactoring, possibly replacing the underlying connections by some dummy ones. It would also require to deal with corner cases around flushing/transactions. If this is really wanted, create an issue in https://github.com/doctrine/data-fixtures/ and will set the milestone to 2.0