blob: 094a8f43eef4b5a947cd6afeef19c554dd8780cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# frozen_string_literal: true
class CleanupBigintConversionForIssueUserMentionsForGitlabCom < Gitlab::Database::Migration[2.1]
include Gitlab::Database::MigrationHelpers::ConvertToBigint
enable_lock_retries!
TABLE = :issue_user_mentions
COLUMNS = [:note_id]
def up
return unless should_run?
cleanup_conversion_of_integer_to_bigint(TABLE, COLUMNS)
end
def down
return unless should_run?
restore_conversion_of_integer_to_bigint(TABLE, COLUMNS)
end
private
def should_run?
com_or_dev_or_test_but_not_jh?
end
end
|