This solution works when you already have the app installed with V1 scheme, so the V1 database is both locally and on iCloud.
But if the app was previously installed with V1 scheme and then deleted, the local DB is non existent while it still on iCloud with V1 scheme.
When installing the app directly with V2 scheme, a custom migration will not be properly executed for the iCloud database. I think because the migration is executed for the local DB which is non existent.
Any solution for this?
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: