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:
7
packages/db/migrations/0161.do.add_subscriptions_name_index.sql
Executable file
7
packages/db/migrations/0161.do.add_subscriptions_name_index.sql
Executable 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);
|
||||
|
||||
9
packages/db/migrations/0161.undo.add_subscriptions_name_index.sql
Executable file
9
packages/db/migrations/0161.undo.add_subscriptions_name_index.sql
Executable 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;
|
||||
Reference in New Issue
Block a user