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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-06-18 14:18:50 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-06-18 14:18:50 +0300
commit8c7f4e9d5f36cff46365a7f8c4b9c21578c1e781 (patch)
treea77e7fe7a93de11213032ed4ab1f33a3db51b738 /db/migrate/20181119132520_add_indexes_to_ci_builds_and_pipelines.rb
parent00b35af3db1abfe813a778f643dad221aad51fca (diff)
Add latest changes from gitlab-org/gitlab@13-1-stable-ee
Diffstat (limited to 'db/migrate/20181119132520_add_indexes_to_ci_builds_and_pipelines.rb')
-rw-r--r--db/migrate/20181119132520_add_indexes_to_ci_builds_and_pipelines.rb44
1 files changed, 0 insertions, 44 deletions
diff --git a/db/migrate/20181119132520_add_indexes_to_ci_builds_and_pipelines.rb b/db/migrate/20181119132520_add_indexes_to_ci_builds_and_pipelines.rb
deleted file mode 100644
index cb01fa113eb..00000000000
--- a/db/migrate/20181119132520_add_indexes_to_ci_builds_and_pipelines.rb
+++ /dev/null
@@ -1,44 +0,0 @@
-# frozen_string_literal: true
-
-class AddIndexesToCiBuildsAndPipelines < ActiveRecord::Migration[5.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- disable_ddl_transaction!
-
- def up
- indexes.each do |index|
- add_concurrent_index(*index)
- end
- end
-
- def down
- indexes.each do |index|
- remove_concurrent_index(*index)
- end
- end
-
- private
-
- def indexes
- [
- [
- :ci_pipelines,
- [:project_id, :ref, :id],
- {
- order: { id: :desc },
- name: 'index_ci_pipelines_on_project_idandrefandiddesc'
- }
- ],
- [
- :ci_builds,
- [:commit_id, :artifacts_expire_at, :id],
- {
- where: "type::text = 'Ci::Build'::text AND (retried = false OR retried IS NULL) AND (name::text = ANY (ARRAY['sast'::character varying, 'dependency_scanning'::character varying, 'sast:container'::character varying, 'container_scanning'::character varying, 'dast'::character varying]::text[]))",
- name: 'index_ci_builds_on_commit_id_and_artifacts_expireatandidpartial'
- }
- ]
- ]
- end
-end