From 9c06d71067d5cb80ce8e50b9591eeb85d906b838 Mon Sep 17 00:00:00 2001
From: Owen Jacobson <owen@grimoire.ca>
Date: Wed, 4 Sep 2024 09:53:53 -0400
Subject: Index token (issued_at) to avoid table scans on expiry

---
 migrations/20240904135137_index_token_issued_at.sql | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 migrations/20240904135137_index_token_issued_at.sql

(limited to 'migrations/20240904135137_index_token_issued_at.sql')

diff --git a/migrations/20240904135137_index_token_issued_at.sql b/migrations/20240904135137_index_token_issued_at.sql
new file mode 100644
index 0000000..b60f691
--- /dev/null
+++ b/migrations/20240904135137_index_token_issued_at.sql
@@ -0,0 +1 @@
+create index token_issued_at on token (issued_at);
-- 
cgit v1.2.3

