mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-11 00:26:40 -04:00
#54 user accounts - add unique constraints
This commit is contained in:
parent
1175a5c0ae
commit
1d7a366da2
9
migrations/003-users-unique.sql
Normal file
9
migrations/003-users-unique.sql
Normal 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";
|
Loading…
x
Reference in New Issue
Block a user