blob: 384b652ca5659e3e7d096cf115d5a33ae6507c97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# frozen_string_literal: true
class AddErrorToSnippetRepositoryStorageMoves < Gitlab::Database::Migration[2.2]
disable_ddl_transaction!
milestone '16.7'
def up
with_lock_retries do
add_column :snippet_repository_storage_moves, :error_message, :text, if_not_exists: true
end
add_text_limit :snippet_repository_storage_moves, :error_message, 256
end
def down
with_lock_retries do
remove_column :snippet_repository_storage_moves, :error_message, if_exists: true
end
end
end
|