I have also set up an application in which there are pre-populated data that copy the database to the project repository. Using the "CoreDataBooks example" method :
Any way to pre-populate kernel data?
For application updates, I want to add more data to the database, but I do not want to change the existing database, because new user data is stored there?
What is the best way to do this?
I think that I would create a new model of managed objects with a version (I'm not sure if you can add a new version of MOM if nothing has changed in the scheme), for new versions, read the current version of MOM, transfer MOM to the latest version and manually add new entries to code that has not been added since the current version of MOM.
It seems a little tedious to manually add new entries to the code. Is this correct, or is there a more elegant way to add this new data?
Thank!
source
share