Reply to self:
I used custom and now it works
static let migrateV1toV2 = MigrationStage.custom(
fromVersion: SchemaV1.self,
toVersion: SchemaV2.self,
willMigrate: nil, didMigrate: nil
)
static let migrateV2toV3 = MigrationStage.custom(
fromVersion: SchemaV2.self,
toVersion: SchemaV3.self,
willMigrate: nil, didMigrate: nil
)
What I need tho, is a way to completly clear the stores and create a new model structure because I completely changed my models and know nothing is working
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: