I have an core-data app that backs up its sqlite database to Dropbox, and the user can restore it by overwriting their current database if/when they need to.
In the next app release, the core-data model has changed, and the databases for existing users will be automatically updated through the lightweight migration process.
My concern is with the databases that have been backed up already. If a user goes to restore an sqlite database that was backed up before the migration, it will not match the latest model and it will crash the app.
Is there any way that I can update a database during the restore process, to match my core-data model? Either a process that I can run, or some steps that I can take to make sure that the backup is not lost?