addSQLiteStoreAndWait() does not support auto-migrating stores anymore; use the asynchronous addSQLiteStore(..., completion:) method instead.

This commit is contained in:
John Rommel Estropia
2015-07-26 10:07:42 +09:00
parent a34d2795af
commit 9676e3aca2
9 changed files with 48 additions and 60 deletions

View File

@@ -18,7 +18,7 @@ private struct Static {
try! dataStack.addSQLiteStoreAndWait(
fileName: "TimeZoneDemo.sqlite",
configuration: "FetchingAndQueryingDemo",
resetStoreOnMigrationFailure: true
resetStoreOnModelMismatch: true
)
dataStack.beginSynchronous { (transaction) -> Void in

View File

@@ -17,7 +17,7 @@ private struct Static {
try! CoreStore.addSQLiteStoreAndWait(
fileName: "ColorsDemo.sqlite",
configuration: "ObservingDemo",
resetStoreOnMigrationFailure: true
resetStoreOnModelMismatch: true
)
return CoreStore.monitorSectionedList(

View File

@@ -21,12 +21,12 @@ private struct Static {
try! dataStack.addSQLiteStoreAndWait(
fileName: "AccountsDemo_FB_Male.sqlite",
configuration: maleConfiguration,
resetStoreOnMigrationFailure: true
resetStoreOnModelMismatch: true
)
try! dataStack.addSQLiteStoreAndWait(
fileName: "AccountsDemo_FB_Female.sqlite",
configuration: femaleConfiguration,
resetStoreOnMigrationFailure: true
resetStoreOnModelMismatch: true
)
dataStack.beginSynchronous { (transaction) -> Void in
@@ -55,12 +55,12 @@ private struct Static {
try! dataStack.addSQLiteStoreAndWait(
fileName: "AccountsDemo_TW_Male.sqlite",
configuration: maleConfiguration,
resetStoreOnMigrationFailure: true
resetStoreOnModelMismatch: true
)
try! dataStack.addSQLiteStoreAndWait(
fileName: "AccountsDemo_TW_Female.sqlite",
configuration: femaleConfiguration,
resetStoreOnMigrationFailure: true
resetStoreOnModelMismatch: true
)
dataStack.beginSynchronous { (transaction) -> Void in

View File

@@ -21,7 +21,7 @@ private struct Static {
try! CoreStore.addSQLiteStoreAndWait(
fileName: "PlaceDemo.sqlite",
configuration: "TransactionsDemo",
resetStoreOnMigrationFailure: true
resetStoreOnModelMismatch: true
)
var place = CoreStore.fetchOne(From(Place))