Skip to content

Commit 3544e04

Browse files
committed
TaskScheduledInstance projectId + active index
1 parent 7fe18d4 commit 3544e04

File tree

2 files changed

+3
-0
lines changed
  • internal-packages/database/prisma

2 files changed

+3
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- CreateIndex
2+
CREATE INDEX CONCURRENTLY IF NOT EXISTS "TaskScheduleInstance_projectId_active_idx" ON "public"."TaskScheduleInstance" ("projectId", "active");

internal-packages/database/prisma/schema.prisma

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1960,6 +1960,7 @@ model TaskScheduleInstance {
19601960
//you can only have a schedule attached to each environment once
19611961
@@unique([taskScheduleId, environmentId])
19621962
@@index([environmentId])
1963+
@@index([projectId, active])
19631964
}
19641965

19651966
model RuntimeEnvironmentSession {

0 commit comments

Comments
 (0)