From 8311244ef526d4611d27db1a47d89d9da66cf635 Mon Sep 17 00:00:00 2001 From: dehort Date: Mon, 19 Feb 2024 16:40:22 -0600 Subject: [PATCH] Remove newly added index as its causing issues in prod (#338) * Remove newly added index as its causing issues in prod * Rename db migration files --- migrations/014_drop-index-labels-playbook-run.down.sql | 1 + migrations/014_drop-index-labels-playbook-run.up.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 migrations/014_drop-index-labels-playbook-run.down.sql create mode 100644 migrations/014_drop-index-labels-playbook-run.up.sql diff --git a/migrations/014_drop-index-labels-playbook-run.down.sql b/migrations/014_drop-index-labels-playbook-run.down.sql new file mode 100644 index 00000000..1b569a96 --- /dev/null +++ b/migrations/014_drop-index-labels-playbook-run.down.sql @@ -0,0 +1 @@ +CREATE INDEX runs_btree_labels_playbook_run_index ON runs USING btree((labels->>'playbook-run')); diff --git a/migrations/014_drop-index-labels-playbook-run.up.sql b/migrations/014_drop-index-labels-playbook-run.up.sql new file mode 100644 index 00000000..b201ccd1 --- /dev/null +++ b/migrations/014_drop-index-labels-playbook-run.up.sql @@ -0,0 +1 @@ +DROP INDEX runs_btree_labels_playbook_run_index;