Skip to content

Commit 64092ab

Browse files
authored
fix: make uuid of App_RoutingForms_FormResponse nullable (calcom#22056)
1 parent b7b631f commit 64092ab

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
-- DropIndex
2+
DROP INDEX IF EXISTS "App_RoutingForms_FormResponse_uuid_key";
3+
4+
-- DropIndex
5+
DROP INDEX IF EXISTS "RoutingFormResponseDenormalized_uuid_key";
6+
7+
-- AlterTable
8+
ALTER TABLE "App_RoutingForms_FormResponse" ALTER COLUMN "uuid" DROP NOT NULL;
9+
10+
-- AlterTable
11+
ALTER TABLE "RoutingFormResponseDenormalized" ALTER COLUMN "uuid" DROP NOT NULL;

packages/prisma/schema.prisma

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ model App_RoutingForms_Form {
11591159

11601160
model App_RoutingForms_FormResponse {
11611161
id Int @id @default(autoincrement())
1162-
uuid String @unique @default(uuid())
1162+
uuid String? @default(uuid())
11631163
formFillerId String @default(cuid())
11641164
form App_RoutingForms_Form @relation(fields: [formId], references: [id], onDelete: Cascade)
11651165
formId String
@@ -1240,7 +1240,7 @@ view RoutingFormResponse {
12401240

12411241
model RoutingFormResponseDenormalized {
12421242
id Int @id
1243-
uuid String @unique
1243+
uuid String?
12441244
formId String
12451245
formName String
12461246
formTeamId Int?

0 commit comments

Comments
 (0)