mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
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:
commit
d718b8e7a5
2 changed files with 16 additions and 0 deletions
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;
|
||||
Loading…
Reference in a new issue