From 577571908421d07c0beb654e26c38aa062d7f485 Mon Sep 17 00:00:00 2001 From: Quentin TREHEUX Date: Sun, 28 May 2023 11:20:10 +0200 Subject: [PATCH] [UPD] migration prisma --- .../20230419061306_google_auth/migration.sql | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 back/prisma/migrations/20230419061306_google_auth/migration.sql diff --git a/back/prisma/migrations/20230419061306_google_auth/migration.sql b/back/prisma/migrations/20230419061306_google_auth/migration.sql new file mode 100644 index 0000000..88eb841 --- /dev/null +++ b/back/prisma/migrations/20230419061306_google_auth/migration.sql @@ -0,0 +1,11 @@ +/* + Warnings: + + - A unique constraint covering the columns `[googleId]` on the table `User` will be added. If there are existing duplicate values, this will fail. + +*/ +-- AlterTable +ALTER TABLE "User" ADD COLUMN "googleId" TEXT; + +-- CreateIndex +CREATE UNIQUE INDEX "User_googleId_key" ON "User"("googleId");