blob: 2d71c11cfa810818c3b555724815e02f9aa9644b (
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 CleanupBigintConversionForDeployments < Gitlab::Database::Migration[1.0]
disable_ddl_transaction!
TABLE = :deployments
# rubocop:disable Migration/WithLockRetriesDisallowedMethod
def up
with_lock_retries do
cleanup_conversion_of_integer_to_bigint(TABLE, :deployable_id)
end
end
# rubocop:enable Migration/WithLockRetriesDisallowedMethod
def down
restore_conversion_of_integer_to_bigint(TABLE, :deployable_id)
end
end
|