mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
create index concurrently on topic column in library_item table
This commit is contained in:
parent
da55dd29c2
commit
dece399faf
3 changed files with 14 additions and 2 deletions
|
|
@ -87,6 +87,4 @@ ALTER TABLE omnivore.library_item
|
|||
ADD COLUMN topic LTREE,
|
||||
ADD COLUMN score FLOAT;
|
||||
|
||||
CREATE INDEX library_item_topic_idx ON omnivore.library_item USING GIST (topic);
|
||||
|
||||
COMMIT;
|
||||
|
|
|
|||
5
packages/db/migrations/0183.do.library_item_topic_idx.sql
Executable file
5
packages/db/migrations/0183.do.library_item_topic_idx.sql
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
-- Type: DO
|
||||
-- Name: library_item_topic_idx
|
||||
-- Description: Create index on topic column in library_item table
|
||||
|
||||
CREATE INDEX CONCURRENTLY IF NOT EXISTS library_item_topic_idx ON omnivore.library_item USING GIST (topic);
|
||||
9
packages/db/migrations/0183.undo.library_item_topic_idx.sql
Executable file
9
packages/db/migrations/0183.undo.library_item_topic_idx.sql
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
-- Type: UNDO
|
||||
-- Name: library_item_topic_idx
|
||||
-- Description: Create index on topic column in library_item table
|
||||
|
||||
BEGIN;
|
||||
|
||||
DROP INDEX IF EXISTS library_item_topic_idx;
|
||||
|
||||
COMMIT;
|
||||
Loading…
Reference in a new issue