fix: make uuid of App_RoutingForms_FormResponse nullable (#22056)
This commit is contained in:
+11
@@ -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;
|
||||
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user