Initial commit: Kalendartool (Next.js, Prisma, Docker)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
-- Migration: Case-insensitive Eindeutigkeit fuer Benutzernamen.
|
||||
-- Bisher war nur "Anna" != "anna" geschuetzt (case-sensitiver Unique-
|
||||
-- Index). Beide Varianten konnten gleichzeitig existieren und im
|
||||
-- Profil-Badge/Reservierungslisten als Identitaet verwechselt werden.
|
||||
-- Der neue funktionale Unique-Index auf lower(username) ist strenger
|
||||
-- und deckt den alten Fall mit ab.
|
||||
|
||||
-- DropIndex
|
||||
DROP INDEX "users_username_key";
|
||||
|
||||
-- CreateIndex (funktional; von Prisma-Introspektion nicht abbildbar)
|
||||
CREATE UNIQUE INDEX "users_username_lower_key" ON "users"(lower("username"));
|
||||
Reference in New Issue
Block a user