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?