Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix(migrate): partial index (#17874)

p0nye12906c56e1f
diff --git a/backend/migrator/migration/3.11/0018##task_run_status_index.sql b/backend/migrator/migration/3.11/0018##task_run_status_index.sql
index c80857cb4f..1d864b4867 100644
--- a/backend/migrator/migration/3.11/0018##task_run_status_index.sql
+++ b/backend/migrator/migration/3.11/0018##task_run_status_index.sql
@@ -25,5 +25,5 @@
-- WHERE task_run.status IN ('RUNNING')
-- ORDER BY task_run.id ASC
-CREATE INDEX CONCURRENTLY idx_task_run_active_status_id ON task_run(status, id)
+CREATE INDEX idx_task_run_active_status_id ON task_run(status, id)
WHERE status IN ('PENDING', 'RUNNING');