• 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 error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: migrations error


  • Subject: Re: migrations error
  • From: Ramsey Gurley <email@hidden>
  • Date: Tue, 01 Nov 2011 08:37:59 -0700

Oops… just looked more closely at your sql. You're setting values on all the rows, aren't you?  I believe that can be done by simply setting the default value in the new column method, but I'll defer to John on that.  I don't use the defaults so I may be mistaken.

Ramsey

On Nov 1, 2011, at 8:32 AM, Ramsey Gurley wrote:

I think this is commonly handled in a post migration

http://webobjects.mdimension.com/hudson/job/Wonder/javadoc/er/extensions/migration/IERXPostMigration.html

Just make your migration implement that interface, and the post migration method will be called after the tables are created.  From the package documentation:

To perform a "post op", your migration can implement IERXPostMigration instead of IERXMigration, and this adds the additional method:

   public void postUpgrade(EOEditingContext editingContext, EOModel model) throws Throwable;
smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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 error
      • From: John Huss <email@hidden>
References: 
 >migrations error (From: Theodore Petrosky <email@hidden>)
 >Re: migrations error (From: Ramsey Gurley <email@hidden>)

  • Prev by Date: Re: migrations error
  • Next by Date: Re: migrations error
  • Previous by thread: Re: migrations error
  • Next by thread: Re: migrations error
  • Index(es):
    • Date
    • Thread