Re: How do I add additional Attributes to a Core Data Entity?
Re: How do I add additional Attributes to a Core Data Entity?
- Subject: Re: How do I add additional Attributes to a Core Data Entity?
- From: Charilaos Skiadas <email@hidden>
- Date: Thu, 21 Jul 2005 11:27:46 -0500
On Jul 21, 2005, at 11:00 AM, Andrew Sage wrote:
I have a set of Core Data Entities which each have several Attributes.
This Data Model has been used for the first version of my software
and I now
have a large amount of data built around it.
The problem is that I tried to add an additional Attribute to one
of the Entities and it
messed everything up. Due to the Attribute's being order by name in
the Entity in the Data Model it appears that my new Attribute has
gone into the middle and values loaded from file are now ending up
in the wrong Attributes.
Is this meant to happen? Is there any way around this or is there
some kind of
versioning that can be used to migrate data from the old model to
the new one?
The CoreRecipes example at http://developer.apple.com/samplecode/
CoreRecipes/CoreRecipes.html
has a detailed example on how to migrate your data. Look under
"Sample Applications/Migration". I haven't personally used it, but it
seems to be what you want.
Thank you.
Haris
_______________________________________________
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