M
M
mind32014-10-17 14:09:06
symfony
mind3, 2014-10-17 14:09:06

Why does a database migration to Symfony2 using DoctrineMigration change something that hasn't changed?

Hello.
I ran into a problem, found that Symfony2 has a convenient bundle for migrating the DoctrineMigrationBundle database, but for some reason it nulls out all the comments and drops the column with all the contents when it is renamed, which is not entirely correct, plus for some reason it drops and re-does creates all keys. How to do the right migration of the database to production, do you really have to write your own solution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-10-17
@mind3

Can it is necessary to write normally migrations? doctrine:migration:diff gives you a framework to work with. It needs to be checked and corrected for your needs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question