mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add an index to the subscriptions name column
This commit is contained in:
parent
20f1a5e02f
commit
8bf0f4d755
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_name_index ON omnivore.subscriptions (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 subscriptions_name_index;
|
||||
|
||||
COMMIT;
|
||||
Loading…
Reference in a new issue