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>2021-11-18 16:16:36 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-11-18 16:16:36 +0300
commit311b0269b4eb9839fa63f80c8d7a58f32b8138a0 (patch)
tree07e7870bca8aed6d61fdcc810731c50d2c40af47 /db/migrate/20201112215028_add_partitioned_audit_event_indexes.rb
parent27909cef6c4170ed9205afa7426b8d3de47cbb0c (diff)
Add latest changes from gitlab-org/gitlab@14-5-stable-eev14.5.0-rc42
Diffstat (limited to 'db/migrate/20201112215028_add_partitioned_audit_event_indexes.rb')
-rw-r--r--db/migrate/20201112215028_add_partitioned_audit_event_indexes.rb29
1 files changed, 0 insertions, 29 deletions
diff --git a/db/migrate/20201112215028_add_partitioned_audit_event_indexes.rb b/db/migrate/20201112215028_add_partitioned_audit_event_indexes.rb
deleted file mode 100644
index d8b2833474b..00000000000
--- a/db/migrate/20201112215028_add_partitioned_audit_event_indexes.rb
+++ /dev/null
@@ -1,29 +0,0 @@
-# frozen_string_literal: true
-
-class AddPartitionedAuditEventIndexes < ActiveRecord::Migration[6.0]
- include Gitlab::Database::PartitioningMigrationHelpers
-
- DOWNTIME = false
-
- CREATED_AT_AUTHOR_ID_INDEX_NAME = 'analytics_index_audit_events_part_on_created_at_and_author_id'
- ENTITY_ID_DESC_INDEX_NAME = 'idx_audit_events_part_on_entity_id_desc_author_id_created_at'
-
- disable_ddl_transaction!
-
- def up
- add_concurrent_partitioned_index :audit_events_part_5fc467ac26,
- [:created_at, :author_id],
- name: CREATED_AT_AUTHOR_ID_INDEX_NAME
-
- add_concurrent_partitioned_index :audit_events_part_5fc467ac26,
- [:entity_id, :entity_type, :id, :author_id, :created_at],
- order: { id: :desc },
- name: ENTITY_ID_DESC_INDEX_NAME
- end
-
- def down
- remove_concurrent_partitioned_index_by_name :audit_events_part_5fc467ac26, ENTITY_ID_DESC_INDEX_NAME
-
- remove_concurrent_partitioned_index_by_name :audit_events_part_5fc467ac26, CREATED_AT_AUTHOR_ID_INDEX_NAME
- end
-end