Re: Does addition of new entity to data model require migration?
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