diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-16 22:16:04 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-16 22:16:04 -0700 |
commit | 885e41536994c7914c48d89015af91b9d254235d (patch) | |
tree | 4c39fcc5e7910e6e1756112aea120512615a9ae5 /rust | |
parent | e6b678fd1abc162e682b4c4c3ed65feb31e617dc (diff) | |
download | fatcat-885e41536994c7914c48d89015af91b9d254235d.tar.gz fatcat-885e41536994c7914c48d89015af91b9d254235d.zip |
unique usernames!
Diffstat (limited to 'rust')
-rw-r--r-- | rust/migrations/2018-05-12-001226_init/up.sql | 2 |
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 ); |