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/20221209174132_remove_sbom_occurrences_unique_index.rb')
-rw-r--r--db/migrate/20221209174132_remove_sbom_occurrences_unique_index.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/db/migrate/20221209174132_remove_sbom_occurrences_unique_index.rb b/db/migrate/20221209174132_remove_sbom_occurrences_unique_index.rb
deleted file mode 100644
index 1bee62b5b1f..00000000000
--- a/db/migrate/20221209174132_remove_sbom_occurrences_unique_index.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-# frozen_string_literal: true
-
-class RemoveSbomOccurrencesUniqueIndex < Gitlab::Database::Migration[2.1]
- INDEX_NAME = 'index_sbom_occurrences_on_ingestion_attributes'
- ATTRIBUTES = %i[
- project_id
- component_id
- component_version_id
- source_id
- commit_sha
- ].freeze
-
- disable_ddl_transaction!
-
- def up
- remove_concurrent_index_by_name :sbom_occurrences, name: INDEX_NAME
- end
-
- def down
- add_concurrent_index :sbom_occurrences, ATTRIBUTES, unique: true, name: INDEX_NAME
- end
-end