Commit dbb11ad4 authored by Stan Hu's avatar Stan Hu Committed by Ruben Davila

Merge branch 'fix-migration' into 'master'

Exclude non existent repository storages.

See merge request !8244
parent 1ba7b3da
......@@ -61,7 +61,7 @@ class RemoveDotGitFromGroupNames < ActiveRecord::Migration
def move_namespace(group_id, path_was, path)
repository_storage_paths = select_all("SELECT distinct(repository_storage) FROM projects WHERE namespace_id = #{group_id}").map do |row|
Gitlab.config.repositories.storages[row['repository_storage']]
end
end.compact
# Move the namespace directory in all storages paths used by member projects
repository_storage_paths.each do |repository_storage_path|
......
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