mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
Minor
This commit is contained in:
1 parent
eb469de2a3
commit
21c3148afb
4 files changed
+4
-4
No files matched your search
@@ -31,7 +31,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDele
|
||||
}
|
||||
migrator.registerMigration("addPersons") { db in
|
||||
try Person(firstName: "Arthur", lastName: "Miller").insert(db)
|
||||
try Person(firstName: "Barbara", lastName: "Streisand").insert(db)
|
||||
try Person(firstName: "Barbra", lastName: "Streisand").insert(db)
|
||||
try Person(firstName: "Cinderella").insert(db)
|
||||
}
|
||||
try! migrator.migrate(dbQueue)
|
||||
|
||||
@@ -31,7 +31,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
}
|
||||
migrator.registerMigration("addPersons") { db in
|
||||
try Person(firstName: "Arthur", lastName: "Miller").insert(db)
|
||||
try Person(firstName: "Barbara", lastName: "Streisand").insert(db)
|
||||
try Person(firstName: "Barbra", lastName: "Streisand").insert(db)
|
||||
try Person(firstName: "Cinderella").insert(db)
|
||||
}
|
||||
try! migrator.migrate(dbQueue)
|
||||
|
||||
@@ -147,7 +147,7 @@
|
||||
// ")")
|
||||
//
|
||||
// try MappedRecord(firstName: "Arthur", lastName: "Miller").insert(db)
|
||||
// try MappedRecord(firstName: "Barbara", lastName: "Streisand").insert(db)
|
||||
// try MappedRecord(firstName: "Barbra", lastName: "Streisand").insert(db)
|
||||
// try MappedRecord(firstName: "Cinderella").insert(db)
|
||||
//
|
||||
// let records = MappedRecord.fetchAll(db, "SELECT * FROM persons ORDER BY firstName, lastName")
|
||||
|
||||
@@ -63,7 +63,7 @@ class Person : Record {
|
||||
|
||||
try! dbQueue.inTransaction { db in
|
||||
try Person(firstName: "Arthur", lastName: "Miller").insert(db)
|
||||
try Person(firstName: "Barbara", lastName: "Streisand").insert(db)
|
||||
try Person(firstName: "Barbra", lastName: "Streisand").insert(db)
|
||||
try Person(firstName: "Cinderella", lastName: nil).insert(db)
|
||||
return .Commit
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user