Updating a Current CoreData Store
How would you update a CoreData sto开发者_JS百科re with a new/updated data model?
Use a data migration:
During migration, Core Data creates two stacks, one for the source store and one for the destination store. Core Data then fetches objects from the source stack and inserts the appropriate corresponding objects into the destination stack. Note that Core Data must re-create objects in the new stack.
精彩评论