Core Data migration, what to do when adding the nth version of your model?
Core Data migration, what to do when adding the nth version of your model?
- Subject: Core Data migration, what to do when adding the nth version of your model?
- From: Sean McBride <email@hidden>
- Date: Wed, 04 Apr 2012 19:40:35 -0400
- Organization: Rogue Research Inc.
Hi all,
My Mac app currently has 3 versions of my xcdatamodel. I have explicit .xcmappingmodels for 1->3 and 2->3 (they pre-date lightweight migration).
I now need to create version 4. Let's assume it's a trivial change from 3. Thus, I hope to do 3->4 with lightweight migration. In fact, currently I've created 4 and it's identical to 3 (confirmed by diffing them). I've marked 4 as the 'current version'.
How do I update my existing .xcmappingmodels to point to version 4 instead of 3?
When viewing the xcmappingmodel in Xcode 4, should I use the 'destination' popup and change it from 3 to 4? After doing so, and diffing its xcmapping.xml, I see the "destinationmodelpath" changes in the expecting way, and one big blob also changes. hmmmm, scary.
Thanks for any help,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden