mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 02:48:28 +08:00
Update possible upload url format for Upload.migrate_to_new_scheme
.
This commit is contained in:
@ -274,7 +274,7 @@ class Upload < ActiveRecord::Base
|
|||||||
|
|
||||||
remap_scope ||= begin
|
remap_scope ||= begin
|
||||||
Post.with_deleted
|
Post.with_deleted
|
||||||
.where("raw ~ '/uploads/#{db}/\\d+/'")
|
.where("raw ~ '/uploads/#{db}/\\d+/' OR raw ~ '/uploads/#{db}/original/\d{1}/'")
|
||||||
.select(:raw, :cooked)
|
.select(:raw, :cooked)
|
||||||
.all
|
.all
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user