• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Migrations and dev cycle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Migrations and dev cycle


  • Subject: Re: Migrations and dev cycle
  • From: John Huss <email@hidden>
  • Date: Thu, 20 Sep 2012 22:05:20 -0500

 

On Thursday, September 20, 2012, Paul Hoadley wrote:
Hi Pascal,

On 21/09/2012, at 4:52 AM, Pascal Robert wrote:

I was wondering how do you deal with situations where your development branch is having migrations that are NOT part of trunk/current release but that you need to do a migration for a fix in trunk?

Let's say trunk is at migration 2 (on the prod database), but the "super new features" branch is at migration 5 (on the dev database), creating a migration 3 in trunk will create problems when trunk is merged with the "super new features" branch, and doing a migration 6 in trunk will make that migration 3-4-5 won't be executed in prod since prod will already be at version 6.

Any solutions?

Assuming that (a) you can trash and re-create your development database at will, and (b) this fix in the master branch is destined to be merged into the development branch (either or both of which might be false), I would:

1.  Create migration 3 in the master (or hotfix, or whatever) branch to fix the problem.

2.  When you're ready to merge in the fix, bump 3, 4 and 5 in development up to 4, 5 and 6, and at the same time merge in the new 3 and whatever else is part of the fix.

At that point you'd obviously drop and re-create the development database with the new chain of migrations.  Does this fit your constraints?

Yeah that describes what I do.  Dealing with the merge conflicts between branches is certainly a pain, but it's tolerable.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Migrations and dev cycle (From: Pascal Robert <email@hidden>)
 >Re: Migrations and dev cycle (From: Paul Hoadley <email@hidden>)

  • Prev by Date: Re: ERXPartials review and Example application
  • Next by Date: Re: ERXPartials review and Example application
  • Previous by thread: Re: Migrations and dev cycle
  • Next by thread: ERAttachment problem
  • Index(es):
    • Date
    • Thread