mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 05:01:14 +08:00
FIX: importer performance of update_tl0, and give feedback during vanilla_mysql's create_permalinks
This commit is contained in:
@ -364,6 +364,7 @@ class ImportScripts::VanillaSQL < ImportScripts::Base
|
||||
ucf = u.custom_fields
|
||||
if ucf && ucf["import_id"] && ucf["import_username"]
|
||||
Permalink.create( url: "profile/#{ucf['import_id']}/#{ucf['import_username']}", external_url: "/users/#{u.username}" ) rescue nil
|
||||
print '.'
|
||||
end
|
||||
end
|
||||
|
||||
@ -378,6 +379,7 @@ class ImportScripts::VanillaSQL < ImportScripts::Base
|
||||
else
|
||||
Permalink.create( url: "discussion/comment/#{id}", post_id: post.id ) rescue nil
|
||||
end
|
||||
print '.'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user