ModelMigrating
public protocol ModelMigrating
Instances of conforming type know how to migrate from one version to the next version
-
Starts a migration process from the passed version number to the next number
Declaration
Swift
func startModelMigration(from currentVersion: ModelVersion) -> AnyPublisher<ModelVersion, MigrationError>
Parameters
currentVersion
The version from which migration should be done