mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
add .unique() to email column
This commit is contained in:
1 parent
0526994603
commit
8fd321f823
1 file changed
+1
-1
@@ -2600,7 +2600,7 @@ The [five different policies](https://www.sqlite.org/lang_conflict.html) are: ab
|
||||
// )
|
||||
try db.create(table: "players") { t in
|
||||
t.column("id", .integer).primaryKey()
|
||||
t.column("email", .text)
|
||||
t.column("email", .text).unique()
|
||||
}
|
||||
|
||||
// Again, despite the unique index on email, both inserts succeed.
|
||||
|
||||
Reference in new issue
Block a user