• 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
Migrations in parallel code branches
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Migrations in parallel code branches


  • Subject: Migrations in parallel code branches
  • From: Maik Musall <email@hidden>
  • Date: Tue, 09 Oct 2012 09:11:34 +0200

Hi,

is there a best practice that I'm not aware of if features are developed in two separate branches which both contain migrations, like by two developers? Those migrations typically end up having the same sequence number p, so they can't easily be merged. Even worse, if you rename one to have a higher number q and then merge them, you have to manually pay attention to which migration has already been executed on which database as number p. If you don't, either could end up not being executed, and/or startup fails because the migration is attempted to be executed twice.

Wouldn't it be better, instead of just a single number, to have one entry per migration in the _dbupdater table so that
* migration classes could be named freely
* merges would be painless
* all databases would update automagically again?

I'd like some feedback on that idea. If everybody finds it a good proposal, I'd start implementing that.

Maik
 _______________________________________________
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

  • Follow-Ups:
    • Re: Migrations in parallel code branches
      • From: Paul Hoadley <email@hidden>
    • Re: Migrations in parallel code branches
      • From: Johann Werner <email@hidden>
  • Prev by Date: Re: Creating a Git Server
  • Next by Date: Re: Migrations in parallel code branches
  • Previous by thread: Re: WOLips 4.2 and Eclipse 4.2.1
  • Next by thread: Re: Migrations in parallel code branches
  • Index(es):
    • Date
    • Thread