Commit 05f9e7ac authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'dm-skip-adding-column-that-may-already-exist' into 'master'

Skip adding column to remote_mirrors that could already exist

Closes gitlab-qa#238

See merge request gitlab-org/gitlab-ee!5652
parents 40c1f64c 0d9ff3ab
......@@ -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