Merge pull request #3492 from omnivore-app/fix/db-add-subscriptions-name-index

Add an index to the subscriptions name column
This commit is contained in:
Jackson Harper
2024-02-06 13:18:07 +08:00
committed by GitHub
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,7 @@
-- Type: DO
-- Name: add_subscriptions_name_index
-- Description: Add an index to the subscriptions name column
CREATE INDEX CONCURRENTLY IF NOT EXISTS subscriptions_user_id_name_index ON omnivore.subscriptions (user_id, name);

View File

@ -0,0 +1,9 @@
-- Type: UNDO
-- Name: add_subscriptions_name_index
-- Description: Add an index to the subscriptions name column
BEGIN;
DROP INDEX IF EXISTS omnivore.subscriptions_user_id_name_index;
COMMIT;