From 3eab48f066832c4afb92704c1c59cc846bd41f7f Mon Sep 17 00:00:00 2001 From: Tahmid Efaz Date: Wed, 7 Feb 2024 14:11:50 -0500 Subject: [PATCH] add index to the playbook-run label --- migrations/013_add-index-labels.down.sql | 1 + migrations/013_add-index-labels.up.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 migrations/013_add-index-labels.down.sql create mode 100644 migrations/013_add-index-labels.up.sql diff --git a/migrations/013_add-index-labels.down.sql b/migrations/013_add-index-labels.down.sql new file mode 100644 index 00000000..2e9e233b --- /dev/null +++ b/migrations/013_add-index-labels.down.sql @@ -0,0 +1 @@ +DROP INDEX idx_btree_labels; diff --git a/migrations/013_add-index-labels.up.sql b/migrations/013_add-index-labels.up.sql new file mode 100644 index 00000000..d15bf5aa --- /dev/null +++ b/migrations/013_add-index-labels.up.sql @@ -0,0 +1 @@ +CREATE INDEX idx_btree_labels ON runs USING btree((labels->>'playbook-run'));