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/20200206135203_udpate_index_ci_builds_on_name_for_security_products.rb')
-rw-r--r--db/post_migrate/20200206135203_udpate_index_ci_builds_on_name_for_security_products.rb33
1 files changed, 0 insertions, 33 deletions
diff --git a/db/post_migrate/20200206135203_udpate_index_ci_builds_on_name_for_security_products.rb b/db/post_migrate/20200206135203_udpate_index_ci_builds_on_name_for_security_products.rb
deleted file mode 100644
index ddaa3049543..00000000000
--- a/db/post_migrate/20200206135203_udpate_index_ci_builds_on_name_for_security_products.rb
+++ /dev/null
@@ -1,33 +0,0 @@
-# frozen_string_literal: true
-
-# See http://doc.gitlab.com/ce/development/migration_style_guide.html
-# for more information on how to write migrations for GitLab.
-
-class UdpateIndexCiBuildsOnNameForSecurityProducts < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
- INDEX_NAME = 'index_ci_builds_on_name_for_security_products_values'
- INDEX_NAME_NEW = 'index_ci_builds_on_name_for_security_reports_values'
- INITIAL_INDEX = "((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('sast'::character varying)::text"
-
- disable_ddl_transaction!
-
- def up
- add_concurrent_index(:ci_builds,
- :name,
- name: INDEX_NAME_NEW,
- where: INITIAL_INDEX + ", ('license_scanning'::character varying)::text]))")
-
- remove_concurrent_index_by_name(:ci_builds, INDEX_NAME)
- end
-
- def down
- add_concurrent_index(:ci_builds,
- :name,
- name: INDEX_NAME,
- where: INITIAL_INDEX + ']))')
-
- remove_concurrent_index_by_name(:ci_builds, INDEX_NAME_NEW)
- end
-end