diff --git a/scripts/sql/281_update_scan_tool_metadata.down.sql b/scripts/sql/281_update_scan_tool_metadata.down.sql index e3afba4ef1..2609524882 100644 --- a/scripts/sql/281_update_scan_tool_metadata.down.sql +++ b/scripts/sql/281_update_scan_tool_metadata.down.sql @@ -11,9 +11,7 @@ SET image_scan_descriptor_template = '[ ]', updated_on = 'now()' WHERE name = 'TRIVY' AND version = 'V1' - AND scan_target = 'IMAGE' - AND active = true - AND deleted = false; + AND scan_target = 'IMAGE'; ALTER TABLE image_scan_execution_result DROP COLUMN class, diff --git a/scripts/sql/281_update_scan_tool_metadata.up.sql b/scripts/sql/281_update_scan_tool_metadata.up.sql index 4d77195099..b948027440 100644 --- a/scripts/sql/281_update_scan_tool_metadata.up.sql +++ b/scripts/sql/281_update_scan_tool_metadata.up.sql @@ -19,9 +19,7 @@ UPDATE scan_tool_metadata SET result_descriptor_template = '[ WHERE name = 'TRIVY' AND version = 'V1' - AND scan_target = 'IMAGE' - AND active = true - AND deleted = false; + AND scan_target = 'IMAGE'; ALTER TABLE image_scan_execution_result ADD COLUMN class TEXT,