mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 17:59:20 +00:00
Additional old Upload#url
format for Upload.migrate_to_new_scheme
.
This commit is contained in:
parent
9ec6ef85b6
commit
be88ac8b7e
@ -281,7 +281,7 @@ class Upload < ActiveRecord::Base
|
||||
|
||||
remap_scope ||= begin
|
||||
Post.with_deleted
|
||||
.where("raw ~ '/uploads/#{db}/\\d+/' OR raw ~ '/uploads/#{db}/original/\\d{1}/'")
|
||||
.where("raw ~ '/uploads/#{db}/\\d+/' OR raw ~ '/uploads/#{db}/original/(\\d|[a-z])/'")
|
||||
.select(:raw, :cooked)
|
||||
.all
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user