• 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: Does addition of new entity to data model require migration?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does addition of new entity to data model require migration?


  • Subject: Re: Does addition of new entity to data model require migration?
  • From: Philip Dow <email@hidden>
  • Date: Wed, 20 Sep 2006 23:20:41 +0200

Bummer.

Seems like an awful pain in the butt that I have to re-establish all my objects and their relationships in a new managed object context and data store when exactly nothing has changed, other than the addition of a new class which none of the entities or relationships yet refer to. But that's what I wanted to know.

-Phil

On Sep 20, 2006, at 10:42 PM, mmalc crawford wrote:


On Sep 20, 2006, at 1:32 PM, Philip Dow wrote:

I'm wondering if I will need to migrate my data set if I add a new class of entity to the model in a later version.

"Core Data stores are conceptually bound to the managed object model used to create them: since a model describes the structure of the data, changing a model will render it incompatible with (and so unable to open) the stores it previously created. If you change your schema, you therefore need to migrate the data in existing stores to new version."

<http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/ Articles/cdVersioning.html#//apple_ref/doc/uid/TP40002989>

mmalc



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Does addition of new entity to data model require migration? (From: Philip Dow <email@hidden>)
 >Re: Does addition of new entity to data model require migration? (From: mmalc crawford <email@hidden>)

  • Prev by Date: Re: Localizing a Managed Object Model default value
  • Next by Date: Sharing Objects between 2 or more NIBS
  • Previous by thread: Re: Does addition of new entity to data model require migration?
  • Next by thread: Address book newbie question
  • Index(es):
    • Date
    • Thread