Skip to content

Commit 234af54

Browse files
committed
Remove 2 unused indexes on TaskRun
1 parent 089c935 commit 234af54

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DROP INDEX CONCURRENTLY IF EXISTS "TaskRun_completedAt_idx";
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- DropIndex
2+
DROP INDEX CONCURRENTLY IF EXISTS "TaskRun_scheduleInstanceId_idx";

internal-packages/database/prisma/schema.prisma

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -682,12 +682,9 @@ model TaskRun {
682682
@@index([projectId, taskIdentifier, status])
683683
//Schedules
684684
@@index([scheduleId])
685-
@@index([scheduleInstanceId])
686685
// Run page inspector
687686
@@index([spanId])
688687
@@index([parentSpanId])
689-
// Finding completed runs
690-
@@index([completedAt])
691688
// Schedule list page
692689
@@index([scheduleId, createdAt(sort: Desc)])
693690
// Finding runs in a batch

0 commit comments

Comments
 (0)