From e07154622336d2128c03885a4447617845982ba1 Mon Sep 17 00:00:00 2001 From: Derek Horton Date: Wed, 21 Feb 2024 16:37:52 -0600 Subject: [PATCH] Adding an index on org_id, correlation_id and status on runs --- migrations/016_add-index-labels-playbook-run.down.sql | 1 + migrations/016_add-index-labels-playbook-run.up.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 migrations/016_add-index-labels-playbook-run.down.sql create mode 100644 migrations/016_add-index-labels-playbook-run.up.sql diff --git a/migrations/016_add-index-labels-playbook-run.down.sql b/migrations/016_add-index-labels-playbook-run.down.sql new file mode 100644 index 00000000..7f5b6337 --- /dev/null +++ b/migrations/016_add-index-labels-playbook-run.down.sql @@ -0,0 +1 @@ +DROP INDEX runs_org_id_correlation_id_status_index; diff --git a/migrations/016_add-index-labels-playbook-run.up.sql b/migrations/016_add-index-labels-playbook-run.up.sql new file mode 100644 index 00000000..65aad130 --- /dev/null +++ b/migrations/016_add-index-labels-playbook-run.up.sql @@ -0,0 +1 @@ +CREATE INDEX runs_org_id_correlation_id_status_index ON runs (org_id, correlation_id, status);