From ad454a94efba6f9983e03e1d0455c21126c81026 Mon Sep 17 00:00:00 2001 From: diced Date: Sat, 17 Dec 2022 09:33:07 -0800 Subject: [PATCH] fix: remove optional --- .../migrations/20221217170526_oauth_id_optional/migration.sql | 2 -- prisma/schema.prisma | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) delete 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 deleted file mode 100644 index 2dfeb2b..0000000 --- a/prisma/migrations/20221217170526_oauth_id_optional/migration.sql +++ /dev/null @@ -1,2 +0,0 @@ --- AlterTable -ALTER TABLE "OAuth" ALTER COLUMN "oauthId" DROP NOT NULL; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 4dd807a..f4a4863 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?