#54 user accounts - add unique constraints

This commit is contained in:
Avris 2020-10-16 00:05:52 +02:00
parent 67724ae550
commit 51b0b471e0
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
-- Up
CREATE UNIQUE INDEX "users_username" ON "users" ("username");
CREATE UNIQUE INDEX "users_email" ON "users" ("email");
-- Down
DROP INDEX "users_email";
DROP INDEX "users_username";