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/20201202160105_add_group_file_name_index_to_dependency_proxy_manifests.rb')
-rw-r--r--db/migrate/20201202160105_add_group_file_name_index_to_dependency_proxy_manifests.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/db/migrate/20201202160105_add_group_file_name_index_to_dependency_proxy_manifests.rb b/db/migrate/20201202160105_add_group_file_name_index_to_dependency_proxy_manifests.rb
deleted file mode 100644
index a0bafeedaec..00000000000
--- a/db/migrate/20201202160105_add_group_file_name_index_to_dependency_proxy_manifests.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-# frozen_string_literal: true
-
-class AddGroupFileNameIndexToDependencyProxyManifests < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- disable_ddl_transaction!
-
- NEW_INDEX = 'index_dependency_proxy_manifests_on_group_id_and_file_name'
- OLD_INDEX = 'index_dependency_proxy_manifests_on_group_id_and_digest'
-
- def up
- add_concurrent_index :dependency_proxy_manifests, [:group_id, :file_name], name: NEW_INDEX, unique: true
- remove_concurrent_index_by_name :dependency_proxy_manifests, OLD_INDEX
- end
-
- def down
- add_concurrent_index :dependency_proxy_manifests, [:group_id, :digest], name: OLD_INDEX
- remove_concurrent_index_by_name :dependency_proxy_manifests, NEW_INDEX
- end
-end