Skip to content
Snippets Groups Projects
Commit 1817ca71 authored by Martin Stähr's avatar Martin Stähr
Browse files

fix: add UNIQUE for email

email have to be unique, because it identifies a user
parent ab5aa8ce
No related branches found
No related tags found
No related merge requests found
......@@ -32,10 +32,11 @@ CREATE TABLE if not exists `tags` (
CREATE TABLE if not exists `users` (
`name` varchar(400) NOT NULL,
`password` varchar(200) NOT NULL,
`email` varchar(400) NOT NULL,
`email` varchar(255) NOT NULL,
`token` varchar(800) NOT NULL,
`rocketChatId` varchar(400) NOT NULL,
`rocketChatAuthToken` varchar(800) NOT NULL
`rocketChatAuthToken` varchar(800) NOT NULL,
UNIQUE (email)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE if not exists projectuser
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment