diff options
Diffstat (limited to 'db/migrate/20210722132844_devops_adoption_drop_redundant_indexes.rb')
-rw-r--r-- | db/migrate/20210722132844_devops_adoption_drop_redundant_indexes.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/db/migrate/20210722132844_devops_adoption_drop_redundant_indexes.rb b/db/migrate/20210722132844_devops_adoption_drop_redundant_indexes.rb deleted file mode 100644 index 3f74f72454d..00000000000 --- a/db/migrate/20210722132844_devops_adoption_drop_redundant_indexes.rb +++ /dev/null @@ -1,20 +0,0 @@ -# frozen_string_literal: true - -class DevopsAdoptionDropRedundantIndexes < ActiveRecord::Migration[6.1] - include Gitlab::Database::MigrationHelpers - - disable_ddl_transaction! - - INDEX_SAST = 'index_ci_job_artifacts_sast_for_devops_adoption' - INDEX_DAST = 'index_ci_job_artifacts_dast_for_devops_adoption' - - def up - remove_concurrent_index_by_name :ci_job_artifacts, INDEX_SAST - remove_concurrent_index_by_name :ci_job_artifacts, INDEX_DAST - end - - def down - add_concurrent_index :ci_job_artifacts, [:project_id, :created_at], where: "file_type = 5", name: INDEX_SAST - add_concurrent_index :ci_job_artifacts, [:project_id, :created_at], where: "file_type = 8", name: INDEX_DAST - end -end |