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
c6753961
Commit
c6753961
authored
Oct 02, 2020
by
can eldem
Committed by
can eldem
Oct 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused index for container scanning reports
Index no longer used
parent
9cd8f37f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
2 deletions
+30
-2
changelogs/unreleased/remove-unused-index-for-cs-reports.yml
changelogs/unreleased/remove-unused-index-for-cs-reports.yml
+5
-0
db/post_migrate/20201002094617_remove_container_scanning_report_type_index.rb
...1002094617_remove_container_scanning_report_type_index.rb
+24
-0
db/schema_migrations/20201002094617
db/schema_migrations/20201002094617
+1
-0
db/structure.sql
db/structure.sql
+0
-2
No files found.
changelogs/unreleased/remove-unused-index-for-cs-reports.yml
0 → 100644
View file @
c6753961
---
title
:
Remove temporary index for container scanning findings
merge_request
:
44131
author
:
type
:
other
db/post_migrate/20201002094617_remove_container_scanning_report_type_index.rb
0 → 100644
View file @
c6753961
# frozen_string_literal: true
class
RemoveContainerScanningReportTypeIndex
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
INDEX_NAME
=
'idx_container_scanning_findings'
disable_ddl_transaction!
def
up
remove_concurrent_index_by_name
(
:vulnerability_occurrences
,
INDEX_NAME
)
end
def
down
# report_type: 2 container scanning
add_concurrent_index
(
:vulnerability_occurrences
,
:id
,
where:
'report_type = 2'
,
name:
INDEX_NAME
)
end
end
db/schema_migrations/20201002094617
0 → 100644
View file @
c6753961
823c72852eeb17eaf43c58e936ac25effdacb335f76562c68a4f90d5b1a32021
\ No newline at end of file
db/structure.sql
View file @
c6753961
...
...
@@ -19365,8 +19365,6 @@ CREATE INDEX idx_audit_events_on_entity_id_desc_author_id_created_at ON audit_ev
CREATE
INDEX
idx_ci_pipelines_artifacts_locked
ON
ci_pipelines
USING
btree
(
ci_ref_id
,
id
)
WHERE
(
locked
=
1
);
CREATE
INDEX
idx_container_scanning_findings
ON
vulnerability_occurrences
USING
btree
(
id
)
WHERE
(
report_type
=
2
);
CREATE
INDEX
idx_deployment_clusters_on_cluster_id_and_kubernetes_namespace
ON
deployment_clusters
USING
btree
(
cluster_id
,
kubernetes_namespace
);
CREATE
UNIQUE
INDEX
idx_deployment_merge_requests_unique_index
ON
deployment_merge_requests
USING
btree
(
deployment_id
,
merge_request_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