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