fix: make uuid of App_RoutingForms_FormResponse nullable (#22056)

This commit is contained in:
Eunjae Lee
2025-06-26 10:42:45 +00:00
committed by GitHub
parent b7b631f0b0
commit 64092abdca
2 changed files with 13 additions and 2 deletions
@@ -0,0 +1,11 @@
-- DropIndex
DROP INDEX IF EXISTS "App_RoutingForms_FormResponse_uuid_key";
-- DropIndex
DROP INDEX IF EXISTS "RoutingFormResponseDenormalized_uuid_key";
-- AlterTable
ALTER TABLE "App_RoutingForms_FormResponse" ALTER COLUMN "uuid" DROP NOT NULL;
-- AlterTable
ALTER TABLE "RoutingFormResponseDenormalized" ALTER COLUMN "uuid" DROP NOT NULL;
+2 -2
View File
@@ -1159,7 +1159,7 @@ model App_RoutingForms_Form {
model App_RoutingForms_FormResponse {
id Int @id @default(autoincrement())
uuid String @unique @default(uuid())
uuid String? @default(uuid())
formFillerId String @default(cuid())
form App_RoutingForms_Form @relation(fields: [formId], references: [id], onDelete: Cascade)
formId String
@@ -1240,7 +1240,7 @@ view RoutingFormResponse {
model RoutingFormResponseDenormalized {
id Int @id
uuid String @unique
uuid String?
formId String
formName String
formTeamId Int?