mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-26 03:11:14 +01:00
WIP: custom migration
This commit is contained in:
@@ -223,6 +223,11 @@ public final class SchemaHistory: ExpressibleByArrayLiteral {
|
||||
return self.schemaByVersion[modelVersion]?.rawModel()
|
||||
}
|
||||
|
||||
internal func schema(for modelVersion: ModelVersion) -> DynamicSchema? {
|
||||
|
||||
return self.schemaByVersion[modelVersion]
|
||||
}
|
||||
|
||||
internal func schema(for storeMetadata: [String: Any]) -> DynamicSchema? {
|
||||
|
||||
guard let modelHashes = storeMetadata[NSStoreModelVersionHashesKey] as! [String: Data]? else {
|
||||
|
||||
Reference in New Issue
Block a user