Does addition of new entity to data model require migration?
Does addition of new entity to data model require migration?
- Subject: Does addition of new entity to data model require migration?
- From: Philip Dow <email@hidden>
- Date: Wed, 20 Sep 2006 22:32:27 +0200
Looking to the future as I develop my first CoreData app, 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.
In app version 1 I have an entity named "Resource" which is abstract.
A concrete subclass is "FileResource," and a user's CoreData database
will contain a number of these items. In version 2 of the app, I may
want to add a "URLResource." The database obviously doesn't have any
of these yet.
When I add that URLResource subclass to the data model, can I simply
replace the model and load the old data set or will I need to migrate
the data set to take into account the new entity, although the data
set does not contain any instances of this entity and nothing else
has changed?
-Phil
_______________________________________________
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