ModelVersion
public enum ModelVersion : Int, Codable, CaseIterable
All available core data modal versions that require a manual migration step in MigrationManager
Add a new case every time you want to start a manual migration to a new xcdatamodel
The rawValue
represents the xcdatamodel
version
-
Declaration
Swift
case taskStatus = 3
-
Declaration
Swift
case profiles = 4
-
Declaration
Swift
case auditEventsInProfile = 5
-
Declaration
Swift
case pKV = 6
-
Creates a
ModelVersion
of the next case related to selfDeclaration
Swift
public func next() -> ModelVersion?
Return Value
Returns the next case if it is not the last case or returns nil
-
Declaration
Swift
public var isLastVersion: Bool { get }
-
Declaration
Swift
public static var latestVersion: ModelVersion { get }