aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-16 22:16:04 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-16 22:16:04 -0700
commit885e41536994c7914c48d89015af91b9d254235d (patch)
tree4c39fcc5e7910e6e1756112aea120512615a9ae5
parente6b678fd1abc162e682b4c4c3ed65feb31e617dc (diff)
downloadfatcat-885e41536994c7914c48d89015af91b9d254235d.tar.gz
fatcat-885e41536994c7914c48d89015af91b9d254235d.zip
unique usernames!
-rw-r--r--rust/migrations/2018-05-12-001226_init/up.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/migrations/2018-05-12-001226_init/up.sql b/rust/migrations/2018-05-12-001226_init/up.sql
index 6d8471eb..1394ebf4 100644
--- a/rust/migrations/2018-05-12-001226_init/up.sql
+++ b/rust/migrations/2018-05-12-001226_init/up.sql
@@ -10,7 +10,7 @@ CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE TABLE editor (
id BIGSERIAL PRIMARY KEY,
- username TEXT NOT NULL,
+ username TEXT NOT NULL UNIQUE,
is_admin BOOLEAN NOT NULL DEFAULT false,
active_editgroup_id BIGINT -- REFERENCES( editgroup(id) via ALTER below
);