Commit 7c391302 authored by Zamir Martins's avatar Zamir Martins Committed by Steve Abrams

Add vulnerability_amount column

into approval_project_rules table.

Changelog: added
parent 434f40f4
# 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