Skip to content
代码片段 群组 项目
提交 ae7afa58 编辑于 作者: Zamir Martins's avatar Zamir Martins 提交者: Steve Abrams
浏览文件

Add severity_levels into approval_project_rules

Changelog: added
上级 d441a3ad
No related branches found
No related tags found
无相关合并请求
# frozen_string_literal: true
class AddVulnerabilitySeveritiesIntoApprovalProjectRules < ActiveRecord::Migration[6.1]
def up
add_column :approval_project_rules, :severity_levels, :text, array: true, null: false, default: []
end
def down
remove_column :approval_project_rules, :severity_levels
end
end
378e12c3c7c49e294ab4ab792151af8e3829cc6f38295d5faa0995ad16f3f934
\ No newline at end of file
...@@ -9729,7 +9729,8 @@ CREATE TABLE approval_project_rules ( ...@@ -9729,7 +9729,8 @@ CREATE TABLE approval_project_rules (
name character varying NOT NULL, name character varying NOT NULL,
rule_type smallint DEFAULT 0 NOT NULL, rule_type smallint DEFAULT 0 NOT NULL,
scanners text[], scanners text[],
vulnerabilities_allowed smallint vulnerabilities_allowed smallint,
severity_levels text[] DEFAULT '{}'::text[] NOT NULL
); );
   
CREATE TABLE approval_project_rules_groups ( CREATE TABLE approval_project_rules_groups (
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册