From 8fd321f823cdce6d54740ad26e2149c278dc75e8 Mon Sep 17 00:00:00 2001 From: kluufger Date: Sun, 22 Apr 2018 15:12:46 +0000 Subject: [PATCH] add .unique() to email column --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c2fc466f9..56a5c434e 100644 --- a/README.md +++ b/README.md @@ -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.