blob: e05feca2c64a7e75451086dd9a93628059efd77d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
class AddKubernetesNamespaceColumnToEnvironments < Gitlab::Database::Migration[2.1]
disable_ddl_transaction!
def up
with_lock_retries do
add_column :environments, :kubernetes_namespace, :text unless column_exists?(:environments, :kubernetes_namespace)
end
add_text_limit :environments, :kubernetes_namespace, 63
end
def down
remove_column :environments, :kubernetes_namespace
end
end
|