I’m new to migrations, and I’m trying to stick to the automatically generated ones:
$ php app/console doctrine:migrations:diff
$ php app/console doctrine:migrations:migrate
The problem is that this drops my sessions table. What can I do to avoid that?
I know I am late to this question, but figured i would offer a suggestion.
import the session tables into your entities. even if you don’t use it through the interfaces it creates, it will allow Doctrine to keep track of the tables, so that it knows they are ment to be there.
see:
http://symfony.com/doc/current/cookbook/doctrine/reverse_engineering.html