blob: bbdfb89bb80cae56f0e13c24eb78bf833d2963a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
# See https://docs.gitlab.com/ee/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class PrepareRemovalPartialIndexDeploymentsForProjectIdAndTag < Gitlab::Database::Migration[2.1]
INDEX_NAME = 'partial_index_deployments_for_project_id_and_tag'
# TODO: Index to be destroyed synchronously in https://gitlab.com/gitlab-org/gitlab/-/issues/402516
def up
prepare_async_index_removal :deployments, :project_id, name: INDEX_NAME
end
def down
unprepare_async_index :deployments, :project_id, name: INDEX_NAME
end
end
|