Adds unique constraint to email in USER table
This commit is contained in:
parent
cfe335ea39
commit
9b06e6a5cc
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
CREATE table user (
|
||||
id text PRIMARY KEY,
|
||||
first_name text NOT NULL,
|
||||
email text NOT NULL
|
||||
email text NOT NULL UNIQUE
|
||||
);
|
||||
|
||||
-- +migrate Down
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue