Commit 0d9ff3ab authored by Douwe Maan's avatar Douwe Maan

Skip adding column to remote_mirrors that could already exist

parent bc36b39a
......@@ -6,6 +6,9 @@ class AddOnlyProtectedBranchesToRemoteMirrors < ActiveRecord::Migration
disable_ddl_transaction!
def up
# When moving from CE to EE, this column may already exist
return if column_exists?(:remote_mirrors, :only_protected_branches)
add_column_with_default(:remote_mirrors, :only_protected_branches, :boolean, default: false, allow_null: false)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment