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'));