From 268215ff5f162850333a3d425411ffee12b47b68 Mon Sep 17 00:00:00 2001 From: diced Date: Sat, 17 Dec 2022 09:06:00 -0800 Subject: [PATCH] fix: oauthId optional --- .../migrations/20221217170526_oauth_id_optional/migration.sql | 2 ++ prisma/schema.prisma | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 prisma/migrations/20221217170526_oauth_id_optional/migration.sql diff --git a/prisma/migrations/20221217170526_oauth_id_optional/migration.sql b/prisma/migrations/20221217170526_oauth_id_optional/migration.sql new file mode 100644 index 0000000..2dfeb2b --- /dev/null +++ b/prisma/migrations/20221217170526_oauth_id_optional/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "OAuth" ALTER COLUMN "oauthId" DROP NOT NULL; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index f4a4863..4dd807a 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -100,7 +100,7 @@ model OAuth { user User @relation(fields: [userId], references: [id], onDelete: Cascade) userId Int username String - oauthId String + oauthId String? token String refresh String?