Commit 3912dd1b authored by Steve Abrams's avatar Steve Abrams

Merge branch 'add_severity_levels_into_approval_project_rules' into 'master'

Add severity_levels column into approval_project_rules table

See merge request gitlab-org/gitlab!67062
parents 84703de4 ae7afa58
# 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 (
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment