coderd: treat email case insensitively (#4215)

This commit is contained in:
Ammar Bandukwala
2022-09-26 22:51:58 -05:00
committed by GitHub
parent 20bcb04e8a
commit 47a53ce6c5
8 changed files with 15 additions and 3 deletions

View File

@ -0,0 +1 @@
CREATE UNIQUE INDEX IF NOT EXISTS users_email_lower_idx ON users USING btree (lower(email)) WHERE (deleted = false);