diff --git a/make/migrations/postgresql/0080_2.5.0_schema.up.sql b/make/migrations/postgresql/0080_2.5.0_schema.up.sql index dcb6e50b5..da6bce4ad 100644 --- a/make/migrations/postgresql/0080_2.5.0_schema.up.sql +++ b/make/migrations/postgresql/0080_2.5.0_schema.up.sql @@ -30,3 +30,5 @@ ALTER TABLE vulnerability_record ALTER COLUMN id TYPE BIGINT; ALTER SEQUENCE vulnerability_record_id_seq AS BIGINT; ALTER TABLE report_vulnerability_record ALTER COLUMN id TYPE BIGINT; ALTER SEQUENCE report_vulnerability_record_id_seq AS BIGINT; + +CREATE INDEX IF NOT EXISTS idx_task_job_id ON task (job_id);