From 8fe13748ca13a7795016b46abb7639f9cec34b30 Mon Sep 17 00:00:00 2001 From: sg Date: Fri, 11 Oct 2024 09:48:41 +0100 Subject: [PATCH] fix issue happening mostly with semgrep where issues would not be enriched due to the type being more than 128 characters --- pkg/enrichment/migrations/006_type_from_varchar_to_text.down.sql | 1 + pkg/enrichment/migrations/006_type_from_varchar_to_text.up.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 pkg/enrichment/migrations/006_type_from_varchar_to_text.down.sql create mode 100644 pkg/enrichment/migrations/006_type_from_varchar_to_text.up.sql diff --git a/pkg/enrichment/migrations/006_type_from_varchar_to_text.down.sql b/pkg/enrichment/migrations/006_type_from_varchar_to_text.down.sql new file mode 100644 index 000000000..f38ad58f8 --- /dev/null +++ b/pkg/enrichment/migrations/006_type_from_varchar_to_text.down.sql @@ -0,0 +1 @@ +ALTER TABLE issues ALTER COLUMN "type" TYPE VARCHAR(128); diff --git a/pkg/enrichment/migrations/006_type_from_varchar_to_text.up.sql b/pkg/enrichment/migrations/006_type_from_varchar_to_text.up.sql new file mode 100644 index 000000000..ea69d4222 --- /dev/null +++ b/pkg/enrichment/migrations/006_type_from_varchar_to_text.up.sql @@ -0,0 +1 @@ +ALTER TABLE issues ALTER COLUMN "type" TYPE text;