debian-mirror-gitlab/db/migrate/20220919062640_add_mirror_branch_regex_to_remote_mirrors.rb
2023-01-12 18:35:48 +00:00

16 lines
411 B
Ruby

# frozen_string_literal: true
class AddMirrorBranchRegexToRemoteMirrors < Gitlab::Database::Migration[2.0]
disable_ddl_transaction!
def up
add_column :remote_mirrors, :mirror_branch_regex, :text
add_text_limit :remote_mirrors, :mirror_branch_regex, 255
end
def down
remove_text_limit :remote_mirrors, :mirror_branch_regex
remove_column :remote_mirrors, :mirror_branch_regex
end
end