add .unique() to email column

This commit is contained in:
kluufger authored and GitHub committed 2018-04-22 15:12:46 +00:00
1 parent 0526994603
commit 8fd321f823
1 file changed
+1 -1
+1 -1
View File
@@ -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.