Make RecreateStoreOnModelMismatch flag work again (fixes #126)

This commit is contained in:
John Rommel Estropia committed 2016-11-26 16:19:12 +09:00
1 parent 92756fec42
commit 5d2956d674
9 files changed
+213 -47

No files matched your search

+4 -1
View File
@@ -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 {