From 25b83c397879cb5084daacf116ca5f4ede62fa90 Mon Sep 17 00:00:00 2001 From: Joe Au-Yeung Date: Fri, 27 Oct 2023 12:58:13 -0400 Subject: [PATCH] Update migration to include iCalSequence --- .../migration.sql | 3 ++- packages/prisma/schema.prisma | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) rename packages/prisma/migrations/{20231026204750_add_i_cal_uid_to_booking => 20231027144522_add_ical_columns_to_booking}/migration.sql (58%) diff --git a/packages/prisma/migrations/20231026204750_add_i_cal_uid_to_booking/migration.sql b/packages/prisma/migrations/20231027144522_add_ical_columns_to_booking/migration.sql similarity index 58% rename from packages/prisma/migrations/20231026204750_add_i_cal_uid_to_booking/migration.sql rename to packages/prisma/migrations/20231027144522_add_ical_columns_to_booking/migration.sql index 2cf3b9f5c8..c8f8dd6e56 100644 --- a/packages/prisma/migrations/20231026204750_add_i_cal_uid_to_booking/migration.sql +++ b/packages/prisma/migrations/20231027144522_add_ical_columns_to_booking/migration.sql @@ -5,4 +5,5 @@ */ -- AlterTable -ALTER TABLE "Booking" ADD COLUMN "iCalUID" TEXT NOT NULL; +ALTER TABLE "Booking" ADD COLUMN "iCalSequence" INTEGER NOT NULL DEFAULT 0, +ADD COLUMN "iCalUID" TEXT NOT NULL; diff --git a/packages/prisma/schema.prisma b/packages/prisma/schema.prisma index d94211e45d..03bb50b10a 100644 --- a/packages/prisma/schema.prisma +++ b/packages/prisma/schema.prisma @@ -418,6 +418,7 @@ model Booking { metadata Json? isRecorded Boolean @default(false) iCalUID String + iCalSequence Int @default(0) @@index([eventTypeId]) @@index([userId])