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
d4dd70e2
Commit
d4dd70e2
authored
Sep 14, 2020
by
Mehmet Emin INAC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove index for security_findings on scan_id
parent
4596819a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
db/migrate/20200914184212_remove_index_on_security_findings_scan_id.rb
...200914184212_remove_index_on_security_findings_scan_id.rb
+18
-0
db/schema_migrations/20200914184212
db/schema_migrations/20200914184212
+1
-0
db/structure.sql
db/structure.sql
+0
-2
No files found.
db/migrate/20200914184212_remove_index_on_security_findings_scan_id.rb
0 → 100644
View file @
d4dd70e2
# frozen_string_literal: true
class
RemoveIndexOnSecurityFindingsScanId
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
INDEX_NAME
=
'index_security_findings_on_scan_id'
disable_ddl_transaction!
def
up
remove_concurrent_index_by_name
:security_findings
,
INDEX_NAME
end
def
down
add_concurrent_index
:security_findings
,
:scan_id
,
name:
INDEX_NAME
end
end
db/schema_migrations/20200914184212
0 → 100644
View file @
d4dd70e2
dcfd1f006aa6695e0fd8f392c7288f2d80bddfe53827d3a2f079bd039f4fe0de
\ No newline at end of file
db/structure.sql
View file @
d4dd70e2
...
...
@@ -20958,8 +20958,6 @@ CREATE INDEX index_security_findings_on_confidence ON public.security_findings U
CREATE
INDEX
index_security_findings_on_project_fingerprint
ON
public
.
security_findings
USING
btree
(
project_fingerprint
);
CREATE
INDEX
index_security_findings_on_scan_id
ON
public
.
security_findings
USING
btree
(
scan_id
);
CREATE
INDEX
index_security_findings_on_scan_id_and_deduplicated
ON
public
.
security_findings
USING
btree
(
scan_id
,
deduplicated
);
CREATE
INDEX
index_security_findings_on_scanner_id
ON
public
.
security_findings
USING
btree
(
scanner_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