From d7859f275c9dec1e6454b1b3295cad140932f848 Mon Sep 17 00:00:00 2001 From: aeneasr <3372410+aeneasr@users.noreply.github.com> Date: Thu, 4 Jan 2024 18:19:21 +0100 Subject: [PATCH] feat: add missing index for jwk table --- .../sql/migrations/20240104181300000001_jwk_index.down.sql | 2 ++ .../sql/migrations/20240104181300000001_jwk_index.up.sql | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 persistence/sql/migrations/20240104181300000001_jwk_index.down.sql create mode 100644 persistence/sql/migrations/20240104181300000001_jwk_index.up.sql diff --git a/persistence/sql/migrations/20240104181300000001_jwk_index.down.sql b/persistence/sql/migrations/20240104181300000001_jwk_index.down.sql new file mode 100644 index 00000000000..2f6ee7479fe --- /dev/null +++ b/persistence/sql/migrations/20240104181300000001_jwk_index.down.sql @@ -0,0 +1,2 @@ +DROP INDEX hydra_jwk_nid_sid_created_at_idx; +DROP INDEX hydra_jwk_nid_sid_kid_created_at_idx; diff --git a/persistence/sql/migrations/20240104181300000001_jwk_index.up.sql b/persistence/sql/migrations/20240104181300000001_jwk_index.up.sql new file mode 100644 index 00000000000..8ec5ed97302 --- /dev/null +++ b/persistence/sql/migrations/20240104181300000001_jwk_index.up.sql @@ -0,0 +1,2 @@ +CREATE INDEX hydra_jwk_nid_sid_created_at_idx ON hydra_jwk (nid, sid, created_at); +CREATE INDEX hydra_jwk_nid_sid_kid_created_at_idx ON hydra_jwk (nid, sid, kid, created_at);