I've submitted an iOS app with SQLite
database file to store data inside the app.
Now in next version of the app – I have some modifications in a database file.
Like,
- Added new tables (1 empty, 2 with fixed data)
- Added new columns in a table
- Removed existing columns from a table
What, I thinking?
I'll add a new database file (which included all changes) in my app, at first run of the app (after update) I'll check for the existence of an old database file, if available, will append everything from old to new file and lastly will delete the old file.
Is this the right way or there can be a more significant way like Core Data migration Or other more appropriate way?
Aucun commentaire:
Enregistrer un commentaire