Skip to content

Commit

Permalink
Added shortish-term fix to users table (removed minilock_id constraint0
Browse files Browse the repository at this point in the history
  • Loading branch information
elimisteve committed Oct 21, 2017
1 parent f528499 commit 967fde8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/sql/table02_users.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CREATE TABLE users (
id serial PRIMARY KEY,
username text NOT NULL UNIQUE CONSTRAINT proper_username CHECK (username ~ '^[a-z][a-z0-9._-]{0,45}$'),
minilock_id text UNIQUE CHECK (40 <= LENGTH(minilock_id) AND LENGTH(minilock_id) <= 55),
minilock_id text NOT NULL DEFAULT '',
default_profile json NOT NULL DEFAULT '{}',
default_profile_enc text NOT NULL DEFAULT '',
created timestamp WITH time zone NOT NULL DEFAULT now()
Expand Down

0 comments on commit 967fde8

Please sign in to comment.