add an index for api key

This commit is contained in:
Hongbo Wu
2024-02-23 11:06:08 +08:00
parent fe2451cca7
commit 534b28c536
2 changed files with 2 additions and 0 deletions

View File

@ -4,3 +4,4 @@
CREATE INDEX CONCURRENTLY IF NOT EXISTS library_item_user_id_state_idx ON omnivore.library_item (user_id, state);
CREATE INDEX CONCURRENTLY IF NOT EXISTS api_key_key_idx ON omnivore.api_key (key);

View File

@ -4,6 +4,7 @@
BEGIN;
DROP INDEX IF EXISTS api_key_key_idx;
DROP INDEX IF EXISTS library_item_user_id_state_idx;
COMMIT;