Hello!
I have a question: How to organize the process of rolling the combat database when a project is deployed?
Behind the brackets leave the update code, dependencies, and so on.
And the details are:
Symfony 2.8.6 + MigrationsBundle + DataFixturesBundle + Mysql The schemas of the base are in the migrations, the basic data of the base for the project are loaded in fixtures. There is also a production base with goods, orders, etc.
I deploy the database to the test state in the following way:
php app/console doctrine:migrations:migrate php app/console doctrine:fixtures:load After that, I need to roll up current data from the production base to this database, and this is where the plug-in occurred. Just make a dump and roll it will not work due to the fact that the production database already has the original records that are created by fixtures, and when importing errors like duplicated will take off.
Please share your experience on how to solve such problems, or throw me some useful link.