Skip to content

Commit 9120691

Browse files
committed
CREATE pg_trgm
1 parent 33e3320 commit 9120691

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

qiita_db/support_files/patches/93.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ ALTER TABLE qiita.processing_job
4545
ALTER COLUMN command_parameters TYPE JSONB USING command_parameters::jsonb;
4646

4747
-- This indexing will take like 5 min
48-
CREATE INDEX processing_job_command_parameters_job_id ON qiita.processing_job
48+
CREATE INDEX IF NOT EXISTS processing_job_command_parameters_job_id ON qiita.processing_job
4949
USING GIN((command_parameters->>'job_id') gin_trgm_ops);
5050

5151
-- This indexing will take like an hour
52-
CREATE INDEX processing_job_command_parameters_payload ON qiita.processing_job
52+
CREATE INDEX IF NOT EXISTS processing_job_command_parameters_payload ON qiita.processing_job
5353
USING GIN((command_parameters->>'payload') gin_trgm_ops);
5454

5555
-- After the changes

qiita_db/support_files/patches/test_db_sql/92.sql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,3 +952,8 @@ INSERT INTO qiita.human_reads_filter_method (
952952
UPDATE qiita.artifact
953953
SET human_reads_filter_method_id = 1
954954
WHERE artifact_id = 1;
955+
956+
-- Oct 18, 2024
957+
-- This is going to be used in 93.sql but adding it here so it happens before that
958+
-- patch in the test database
959+
CREATE EXTENSION pg_trgm;

0 commit comments

Comments
 (0)