• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Migration problem with Version Control - CI3

#1
Let's say I create branch A locally that contains a migration file that I migrate locally. After that I create branch B locally. It also contains a migration file that I migrate locally. That works fine.

Now tomthe problem: I decide to push branch B to my live server before I push branch A. I run the migration B on the live server. Later I also push branch A to my live server. How can we migrate the migration file from branch A without having to rollback the migration file from branch B, meaning loosing it's data?

Edit:
Can I simply change the timestamp to a newer than migration B? (migration B is not depending on migration A) I guess I also have to change migration version in my local database to the new timestamp, in order to avoid it to be migrated next time I migrate to the latest migration.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.