🐛 Make identifier in verification tokens case insensitive (#919)

This commit is contained in:
Luke Vella 2023-10-27 08:59:23 +01:00 committed by GitHub
parent 768b73c89a
commit b10c64b7da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 7 deletions

View file

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "verification_tokens" ALTER COLUMN "identifier" SET DATA TYPE CITEXT;

View file

@ -228,7 +228,7 @@ model Comment {
}
model VerificationToken {
identifier String
identifier String @db.Citext
token String @unique
expires DateTime