summaryrefslogtreecommitdiff
path: root/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_projects.rb
diff options
context:
space:
mode:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2018-01-11 17:57:04 +0000
committerLuke Bennett <lukeeeebennettplus@gmail.com>2018-01-11 17:57:04 +0000
commitf09735d3f3a51adf621a70ccfcc4ba4342b0942d (patch)
tree9f365a5cdf8f6ec00ddec8f3e06cf54ca58480d3 /lib/gitlab/database/rename_reserved_paths_migration/v1/rename_projects.rb
parent47b04690289303b3209a3b72df08fd0a6bd3233f (diff)
parent215fd04ee33705e10f0699ee8803af257689f28f (diff)
downloadgitlab-ce-f09735d3f3a51adf621a70ccfcc4ba4342b0942d.tar.gz
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce
Diffstat (limited to 'lib/gitlab/database/rename_reserved_paths_migration/v1/rename_projects.rb')
-rw-r--r--lib/gitlab/database/rename_reserved_paths_migration/v1/rename_projects.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_projects.rb b/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_projects.rb
index d32616862f0..979225dd216 100644
--- a/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_projects.rb
+++ b/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_projects.rb
@@ -26,6 +26,7 @@ module Gitlab
move_repository(project, old_full_path, new_full_path)
move_repository(project, "#{old_full_path}.wiki", "#{new_full_path}.wiki")
end
+
move_uploads(old_full_path, new_full_path) unless project.hashed_storage?(:attachments)
move_pages(old_full_path, new_full_path)
end