mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-22 01:19:16 +01:00
Make RecreateStoreOnModelMismatch flag work again (fixes #126)
This commit is contained in:
@@ -216,7 +216,10 @@ public extension DataStack {
|
||||
|
||||
do {
|
||||
|
||||
_ = try self.model[metadata].flatMap(storage.eraseStorageAndWait)
|
||||
try storage.eraseStorageAndWait(
|
||||
metadata: metadata,
|
||||
soureModelHint: self.model[metadata]
|
||||
)
|
||||
_ = try self.addStorageAndWait(storage)
|
||||
|
||||
DispatchQueue.main.async {
|
||||
|
||||
Reference in New Issue
Block a user