Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ae7afa58
Commit
ae7afa58
authored
Aug 04, 2021
by
Zamir Martins
Committed by
Steve Abrams
Aug 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add severity_levels into approval_project_rules
Changelog: added
parent
d441a3ad
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
db/migrate/20210726202748_add_vulnerability_severities_into_approval_project_rules.rb
...d_vulnerability_severities_into_approval_project_rules.rb
+11
-0
db/schema_migrations/20210726202748
db/schema_migrations/20210726202748
+1
-0
db/structure.sql
db/structure.sql
+2
-1
No files found.
db/migrate/20210726202748_add_vulnerability_severities_into_approval_project_rules.rb
0 → 100644
View file @
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
db/schema_migrations/20210726202748
0 → 100644
View file @
ae7afa58
378e12c3c7c49e294ab4ab792151af8e3829cc6f38295d5faa0995ad16f3f934
\ No newline at end of file
db/structure.sql
View file @
ae7afa58
...
...
@@ -9729,7 +9729,8 @@ CREATE TABLE approval_project_rules (
name character varying NOT NULL,
rule_type smallint DEFAULT 0 NOT NULL,
scanners text[],
vulnerabilities_allowed smallint
vulnerabilities_allowed smallint,
severity_levels text[] DEFAULT '{}'::text[] NOT NULL
);
CREATE TABLE approval_project_rules_groups (
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment