fix: updatedAt routing form response migration (#20660)

This commit is contained in:
Morgan
2025-04-11 11:59:22 +00:00
committed by GitHub
parent 3ee8032538
commit 2ab34004a2
2 changed files with 2 additions and 2 deletions
@@ -5,4 +5,4 @@
*/
-- AlterTable
ALTER TABLE "App_RoutingForms_FormResponse" ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL;
ALTER TABLE "App_RoutingForms_FormResponse" ADD COLUMN "updatedAt" TIMESTAMP(3);
+1 -1
View File
@@ -1067,7 +1067,7 @@ model App_RoutingForms_FormResponse {
formId String
response Json
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
updatedAt DateTime? @updatedAt
routedToBookingUid String? @unique
// We should not cascade delete the booking, because we want to keep the form response even if the routedToBooking is deleted