Add an index to the subscriptions name column

This commit is contained in:
Jackson Harper
2024-02-03 09:39:15 +08:00
parent 20f1a5e02f
commit 8bf0f4d755
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_name_index ON omnivore.subscriptions (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 subscriptions_name_index;
COMMIT;