Commit 3e065ce6 authored by Steve Abrams's avatar Steve Abrams

Merge branch 'add_vulnerability_amount_into_approval_project_rules' into 'master'

Add vulnerabilities_allowed column

See merge request gitlab-org/gitlab!66673
parents d26b12d6 7c391302
# frozen_string_literal: true
class AddVulnerabilityAmountColumnIntoApprovalProjectRules < ActiveRecord::Migration[6.1]
def up
add_column :approval_project_rules, :vulnerabilities_allowed, :integer, limit: 2
end
def down
remove_column :approval_project_rules, :vulnerabilities_allowed
end
end
ee3e6377478302f41aa06f2278f38a9dde2f325318b4f2eba1007abb1dd1099c
\ No newline at end of file
......@@ -9670,7 +9670,8 @@ CREATE TABLE approval_project_rules (
approvals_required smallint DEFAULT 0 NOT NULL,
name character varying NOT NULL,
rule_type smallint DEFAULT 0 NOT NULL,
scanners text[]
scanners text[],
vulnerabilities_allowed smallint
);
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