CodeIgniter Forums
Migration problem with Version Control - CI3 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Migration problem with Version Control - CI3 (/showthread.php?tid=76727)



Migration problem with Version Control - CI3 - muuucho - 06-13-2020

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.