A platform for community discussion. Free, open, simple.
FIX: should not migrate the system uploads to s3
Vinoth Kannanbc0c4b725356
diff --git a/lib/tasks/uploads.rake b/lib/tasks/uploads.rakeindex a507f70fb77..5704cf32da2 100644--- a/lib/tasks/uploads.rake+++ b/lib/tasks/uploads.rake@@ -441,7 +441,7 @@ def migrate_to_s3endbase_url = File.join(SiteSetting.Upload.s3_base_url, prefix)- count = Upload.where("url NOT LIKE '#{base_url}%'").count+ count = Upload.where("id >= 0 AND url NOT LIKE '#{base_url}%'").countraise "#{count} of #{Upload.count} uploads are not migrated to S3. #{failure_message}" if count > 0cdn_path = SiteSetting.cdn_path("/uploads/#{db}").sub(/https?:/, "")