mirror of
https://github.com/documenso/documenso.git
synced 2025-11-24 21:51:40 +10:00
wip: test
This commit is contained in:
@ -0,0 +1,11 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "User" ADD COLUMN "secondaryId" TEXT;
|
||||
|
||||
-- Set all null secondaryId fields to a uuid
|
||||
UPDATE "User" SET "secondaryId" = gen_random_uuid()::text WHERE "secondaryId" IS NULL;
|
||||
|
||||
-- Restrict the User to required
|
||||
ALTER TABLE "User" ALTER COLUMN "secondaryId" SET NOT NULL;
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "User_secondaryId_key" ON "User"("secondaryId");
|
||||
Reference in New Issue
Block a user