Welcome Guest, Not a member yet? Register   Sign In
Migration problem with Version Control - CI3
#1

(This post was last modified: 06-13-2020, 05:23 AM by muuucho.)

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




Theme © iAndrew 2016 - Forum software by © MyBB