• 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: Simple question: inserting data right after table creation (on migration?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple question: inserting data right after table creation (on migration?)


  • Subject: Re: Simple question: inserting data right after table creation (on migration?)
  • From: Johnny Miller <email@hidden>
  • Date: Sun, 16 Dec 2012 10:45:03 -1000

You can also make your migration file implement: IERXPostMigration

So in your normal migration do your database changes and then in public void postUpgrade(EOEditingContext editingContext, EOModel model) do your inserts.

Aloha,
Mr. Johnny Miller
Web Development Manager
Kahalawai Media Company
Lahaina, HI 96761
tel: (808) 661-7962 | mobile: (808) 283-0791
website | e-mail

On Dec 16, 2012, at 4:34 AM, James Cicenia <email@hidden> wrote:

I have always created a second migration file with SQL inserts. Haven't experienced any problems.

DateModel0 ==> setup tables, etc.
DateModel1 ==> bootstrap data sql inserts


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: Simple question: inserting data right after table creation (on migration?)
      • From: Flavio Donadio <email@hidden>
    • Re: Simple question: inserting data right after table creation (on migration?)
      • From: email@hidden
References: 
 >Simple question: inserting data right after table creation (on migration?) (From: Flavio Donadio <email@hidden>)
 >Re: Simple question: inserting data right after table creation (on migration?) (From: James Cicenia <email@hidden>)

  • Prev by Date: Re: D2W and ERAttachment
  • Next by Date: Re: Simple question: inserting data right after table creation (on migration?)
  • Previous by thread: Re: Simple question: inserting data right after table creation (on migration?)
  • Next by thread: Re: Simple question: inserting data right after table creation (on migration?)
  • Index(es):
    • Date
    • Thread