iPhone: Core Data: Updating a pre-filled database in future app versions.
Posted
by Cuzog
on Stack Overflow
See other posts from Stack Overflow
or by Cuzog
Published on 2010-06-16T20:07:12Z
Indexed on
2010/06/17
3:23 UTC
Read the original article
Hit count: 382
I am creating an app with a database of information that needs to be pre-filled. This data will change in future versions. In the same database, I also need to store user editable information since that user edited data directly relates to the pre-filled data.
My question is, if I'm pre-filling the database by creating a duplicate data model in a second app and copying over the core data file before release, how would I handle updates to that data in future versions of the app without destroying the user's existing data? Do the core data migration methods handle this, or must I write custom methods to programatically handle the merge at first app launch?
© Stack Overflow or respective owner