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])