iPhone CoreData Migration and modifying data

Posted by ScottL on Stack Overflow See other posts from Stack Overflow or by ScottL
Published on 2010-05-26T22:18:46Z Indexed on 2010/05/26 22:21 UTC
Read the original article Hit count: 199

Filed under:
|

I have an app that has both static data and user entered data in the CoreData store. I understand how to do a lightweight migration to a new database version, but how to I add or modify the static data without affecting the users data?

If I have 50 static data entries to add and a couple to modify (ie. spelling mistakes) should they be stored in a different sqlite db and copied over? Also, is it possible to look at the version of the data store so that this copy only happens the first time the app is started up after upgrading?

Sorry for the general noob type question, but this is the first time I have ever had to deal with this sort of issue.

Thanks,

Scott

© Stack Overflow or respective owner

Related posts about iphone

Related posts about coredata