Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20200923130057_remove_tmp_container_scanning_index.rb')
-rw-r--r--db/migrate/20200923130057_remove_tmp_container_scanning_index.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/db/migrate/20200923130057_remove_tmp_container_scanning_index.rb b/db/migrate/20200923130057_remove_tmp_container_scanning_index.rb
deleted file mode 100644
index e9ab6f9ff15..00000000000
--- a/db/migrate/20200923130057_remove_tmp_container_scanning_index.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-# frozen_string_literal: true
-
-class RemoveTmpContainerScanningIndex < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
- INDEX_NAME = 'tmp_index_for_fixing_inconsistent_vulnerability_occurrences'
- 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: "LENGTH(location_fingerprint) = 40 AND report_type = 2",
- name: INDEX_NAME)
- end
-end