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/post_migrate/20200217223651_add_index_to_job_artifact_secure_reports.rb')
-rw-r--r--db/post_migrate/20200217223651_add_index_to_job_artifact_secure_reports.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/db/post_migrate/20200217223651_add_index_to_job_artifact_secure_reports.rb b/db/post_migrate/20200217223651_add_index_to_job_artifact_secure_reports.rb
deleted file mode 100644
index ca297272f8e..00000000000
--- a/db/post_migrate/20200217223651_add_index_to_job_artifact_secure_reports.rb
+++ /dev/null
@@ -1,24 +0,0 @@
-# frozen_string_literal: true
-
-class AddIndexToJobArtifactSecureReports < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
- INDEX_NAME = 'job_artifacts_secure_reports_temp_index'
- PARTIAL_FILTER = "file_type BETWEEN 5 AND 8"
-
- disable_ddl_transaction!
-
- def up
- # This is a temporary index used for the migration of Security Reports to Security Scans
- add_concurrent_index(:ci_job_artifacts,
- [:id, :file_type, :job_id, :created_at, :updated_at],
- name: INDEX_NAME,
- where: PARTIAL_FILTER)
- end
-
- def down
- remove_concurrent_index(:ci_job_artifacts,
- [:id, :file_type, :job_id, :created_at, :updated_at])
- end
-end