blob: cb5714055bb1408459b21cfbc0d83e024e90dc9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# frozen_string_literal: true
class DropTemporaryColumnsAndTriggersForTaggings < Gitlab::Database::Migration[1.0]
enable_lock_retries!
TABLE = 'taggings'
COLUMNS = %w(id taggable_id)
# rubocop:disable Migration/WithLockRetriesDisallowedMethod
def up
cleanup_conversion_of_integer_to_bigint(TABLE, COLUMNS)
end
# rubocop:enable Migration/WithLockRetriesDisallowedMethod
def down
restore_conversion_of_integer_to_bigint(TABLE, COLUMNS)
end
end
|