From 39ee5e1f0cfa7fae5c4f9e1663a930cb5b8c2bc9 Mon Sep 17 00:00:00 2001 From: hackerman <3372410+aeneasr@users.noreply.github.com> Date: Fri, 5 Jan 2024 10:04:48 +0100 Subject: [PATCH] feat: add missing index for jwk table (#3691) --- .../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);