Reputation: 14834
I have an iOS app on App Store that utilized Data Core with SQLite engine. The updated version that I plan to update needed to add several more attributes (fields) to an entity (table). What is the simplest way to handle this without losing data on already existing SQLite database?
Upvotes: 0
Views: 544
Reputation: 26672
The way to do this is with what's called a "Core Data Migration".
Here's the Core Data Model Versioning and Data Migration Programming Guide
Also, some initial posts:
http://www.timisted.net/blog/archive/core-data-migration/
Upvotes: 2