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
47c6f082
Commit
47c6f082
authored
Dec 01, 2020
by
Mehmet Emin INAC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Index vulnerabilities on project_id, state and severity columns
parent
638af3dd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
db/migrate/20201201175656_add_index_vulnerabilities_on_project_id_and_state_and_severity.rb
...x_vulnerabilities_on_project_id_and_state_and_severity.rb
+18
-0
db/schema_migrations/20201201175656
db/schema_migrations/20201201175656
+1
-0
db/structure.sql
db/structure.sql
+2
-0
No files found.
db/migrate/20201201175656_add_index_vulnerabilities_on_project_id_and_state_and_severity.rb
0 → 100644
View file @
47c6f082
# frozen_string_literal: true
class
AddIndexVulnerabilitiesOnProjectIdAndStateAndSeverity
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
INDEX_NAME
=
'index_vulnerabilities_on_project_id_and_state_and_severity'
disable_ddl_transaction!
def
up
add_concurrent_index
:vulnerabilities
,
[
:project_id
,
:state
,
:severity
],
name:
INDEX_NAME
end
def
down
remove_concurrent_index_by_name
:vulnerabilities
,
INDEX_NAME
end
end
db/schema_migrations/20201201175656
0 → 100644
View file @
47c6f082
54ed18361a28d0b750cbbdb3bfb53b7e4bbe3d1d7264de51522796d3bd15f7a5
\ No newline at end of file
db/structure.sql
View file @
47c6f082
...
...
@@ -22472,6 +22472,8 @@ CREATE INDEX index_vulnerabilities_on_milestone_id ON vulnerabilities USING btre
CREATE
INDEX
index_vulnerabilities_on_project_id
ON
vulnerabilities
USING
btree
(
project_id
);
CREATE
INDEX
index_vulnerabilities_on_project_id_and_state_and_severity
ON
vulnerabilities
USING
btree
(
project_id
,
state
,
severity
);
CREATE
INDEX
index_vulnerabilities_on_resolved_by_id
ON
vulnerabilities
USING
btree
(
resolved_by_id
);
CREATE
INDEX
index_vulnerabilities_on_start_date_sourcing_milestone_id
ON
vulnerabilities
USING
btree
(
start_date_sourcing_milestone_id
);
...
...
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