From 27d59b6413144fcac224d644f814cc27bdfb3806 Mon Sep 17 00:00:00 2001 From: Morgan <33722304+ThyMinimalDev@users.noreply.github.com> Date: Fri, 17 Nov 2023 13:01:13 +0200 Subject: [PATCH] fix: add idx scheduleId on eventType (#12400) --- .../20231117081852_idx_eventtype_scheduleid/migration.sql | 2 ++ packages/prisma/schema.prisma | 1 + 2 files changed, 3 insertions(+) create mode 100644 packages/prisma/migrations/20231117081852_idx_eventtype_scheduleid/migration.sql diff --git a/packages/prisma/migrations/20231117081852_idx_eventtype_scheduleid/migration.sql b/packages/prisma/migrations/20231117081852_idx_eventtype_scheduleid/migration.sql new file mode 100644 index 00000000000000..48eb119e72b816 --- /dev/null +++ b/packages/prisma/migrations/20231117081852_idx_eventtype_scheduleid/migration.sql @@ -0,0 +1,2 @@ +-- CreateIndex +CREATE INDEX "EventType_scheduleId_idx" ON "EventType"("scheduleId"); diff --git a/packages/prisma/schema.prisma b/packages/prisma/schema.prisma index c9c2bf65962c3b..004fcc314728e7 100644 --- a/packages/prisma/schema.prisma +++ b/packages/prisma/schema.prisma @@ -123,6 +123,7 @@ model EventType { @@unique([userId, parentId]) @@index([userId]) @@index([teamId]) + @@index([scheduleId]) } model Credential {