blob: a5688a9b1968da2cd08f5006fa1ba0be618a88b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# frozen_string_literal: true
class AsyncDropIndexUsersOnAcceptedTermId < Gitlab::Database::Migration[2.2]
milestone '16.6'
disable_ddl_transaction!
TABLE_NAME = 'users'
INDEX_NAME = 'index_users_on_accepted_term_id'
COLUMN = 'accepted_term_id'
# TODO: Index to be destroyed synchronously in https://gitlab.com/gitlab-org/gitlab/-/merge_requests/135293
def up
prepare_async_index_removal TABLE_NAME, COLUMN, name: INDEX_NAME
end
def down
prepare_async_index_removal TABLE_NAME, COLUMN, name: INDEX_NAME
end
end
|