I have a Zend Framework / Doctrine 1.2 project that is source controlled by git
. How do you keep track of migration classes when switching from branch to branch in git?
For example
In branch A I have a migration class file (038_version.php)
In branch B I have a migration class file (039_version.php)
Doctrine will apply the migrations sequentially based on the file name, so I have to push out the features in branch A before branch B in order to get Doctrine migration to work.
Should I just keep all migrations in its own branch and change the numbers before going live?