Commit d4dd70e2 authored by Mehmet Emin INAC's avatar Mehmet Emin INAC

Remove index for security_findings on scan_id

parent 4596819a
# 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
dcfd1f006aa6695e0fd8f392c7288f2d80bddfe53827d3a2f079bd039f4fe0de
\ No newline at end of file
...@@ -20958,8 +20958,6 @@ CREATE INDEX index_security_findings_on_confidence ON public.security_findings U ...@@ -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_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_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); CREATE INDEX index_security_findings_on_scanner_id ON public.security_findings USING btree (scanner_id);
......
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