mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3
This commit is contained in:
commit
142542da1e
1 file changed
+2
-2
@@ -2201,8 +2201,8 @@ Other **table constraints** can involve several columns:
|
||||
// UNIQUE (a, b) ON CONFLICT REPLACE,
|
||||
t.uniqueKey(["a", "b"], onConfict: .replace)
|
||||
|
||||
// FOREIGN KEY (c, d) REFERENCES parents(a, b),
|
||||
t.foreignKey(["c", "d"], references: "parent")
|
||||
// FOREIGN KEY (a, b) REFERENCES parents(c, d),
|
||||
t.foreignKey(["a", "b"], references: "parent")
|
||||
|
||||
// CHECK (a + b < 10),
|
||||
t.check(Column("a") + Column("b") < 10)
|
||||
|
||||
Reference in new issue
Block a user