title: How do you handle Doctrine Migrations when using Git?
body: <p>I have a Zend Framework / Doctrine 1.2 project that is source controlled by <code>git</code>. How do you keep track of migration classes when switching from branch to branch in git?</p>
  
  <p>For example</p>
  
  <p>In <strong>branch A</strong> I have a migration class file (038_version.php)</p>
  
  <p>In <strong>branch B</strong> I have a migration class file (039_version.php)</p>
  
  <p>Doctrine will apply the migrations <em>sequentially</em> 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. </p>
  
  <p>Should I just keep all migrations in its own branch and change the numbers before going live? </p>