Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone:Updating a Core Data Model in Future Versions of an App

I am releasing a Core Data based app and wondered what I need to consider if, in an update later down the line, I need to change the model.

How do I move existing user data on the device from the old data model into a new updated model?

Thanks

like image 809
Chris Avatar asked Mar 11 '10 11:03

Chris


1 Answers

Generally, you'll have to consider nothing now but as soon as you change your data model, you'll have to employ Core Data's model migration tools. Read the Core Data Model Versioning and Data Migration Programming Guide.

like image 137
Ole Begemann Avatar answered Sep 25 '22 01:09

Ole Begemann