From 2eadecb63509b6fb41d11e313d19a54720565285 Mon Sep 17 00:00:00 2001 From: Tahmid Efaz Date: Wed, 7 Feb 2024 14:46:15 -0500 Subject: [PATCH] renaming index --- migrations/013_add-index-labels-playbook-run.down.sql | 1 + migrations/013_add-index-labels-playbook-run.up.sql | 1 + migrations/013_add-index-labels.down.sql | 1 - migrations/013_add-index-labels.up.sql | 1 - 4 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 migrations/013_add-index-labels-playbook-run.down.sql create mode 100644 migrations/013_add-index-labels-playbook-run.up.sql delete mode 100644 migrations/013_add-index-labels.down.sql delete mode 100644 migrations/013_add-index-labels.up.sql diff --git a/migrations/013_add-index-labels-playbook-run.down.sql b/migrations/013_add-index-labels-playbook-run.down.sql new file mode 100644 index 00000000..b201ccd1 --- /dev/null +++ b/migrations/013_add-index-labels-playbook-run.down.sql @@ -0,0 +1 @@ +DROP INDEX runs_btree_labels_playbook_run_index; diff --git a/migrations/013_add-index-labels-playbook-run.up.sql b/migrations/013_add-index-labels-playbook-run.up.sql new file mode 100644 index 00000000..1b569a96 --- /dev/null +++ b/migrations/013_add-index-labels-playbook-run.up.sql @@ -0,0 +1 @@ +CREATE INDEX runs_btree_labels_playbook_run_index ON runs USING btree((labels->>'playbook-run')); diff --git a/migrations/013_add-index-labels.down.sql b/migrations/013_add-index-labels.down.sql deleted file mode 100644 index 2e9e233b..00000000 --- a/migrations/013_add-index-labels.down.sql +++ /dev/null @@ -1 +0,0 @@ -DROP INDEX idx_btree_labels; diff --git a/migrations/013_add-index-labels.up.sql b/migrations/013_add-index-labels.up.sql deleted file mode 100644 index d15bf5aa..00000000 --- a/migrations/013_add-index-labels.up.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX idx_btree_labels ON runs USING btree((labels->>'playbook-run'));