The application has a pre-installed database in Core Data. The user adds the data in the same database. The user's data is assigned its own index, to filter them from the preset data. How, when updating the application, transfer user data to the pre-installed database?

The preset and data migration processes in core data are clear. It is not clear how to combine these two processes when updating an application.

  • Came to the decision that you need to divide the repository into two repositories (application and user repository). Splitting Data Across Multiple Persistent Stores. And when updating the application, update the application repository, and do not touch the user. - Alex Burov

1 answer 1

When you first start the updated application to do the migration.