mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +00:00
README.md
This commit is contained in:
1 parent
b8696d80eb
commit
e887c4fc32
1 file changed
+2
-1
@@ -37,7 +37,8 @@ migrator.registerMigration("createPersons") { db in
|
||||
}
|
||||
migrator.registerMigration("createPets") { db in
|
||||
// Support for foreign keys is enabled by default:
|
||||
try db.execute("CREATE TABLE pets (" +
|
||||
try db.execute(
|
||||
"CREATE TABLE pets (" +
|
||||
"id INTEGER PRIMARY KEY, " +
|
||||
"masterID INTEGER NOT NULL " +
|
||||
" REFERENCES persons(id) " +
|
||||
|
||||
Reference in new issue
Block a user