#54 user accounts - add unique constraints
This commit is contained in:
parent
67724ae550
commit
51b0b471e0
|
@ -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";
|
Reference in New Issue