mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
FIX: set uploads sequence after copying uplaods in discourse_merger
This commit is contained in:
parent
73739060f3
commit
4e09206061
@ -322,6 +322,9 @@ class BulkImport::DiscourseMerger < BulkImport::Base
|
|||||||
@raw_connection.put_copy_data(row.values)
|
@raw_connection.put_copy_data(row.values)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@sequences[Upload.sequence_name] = last_id + 1
|
||||||
|
|
||||||
puts ''
|
puts ''
|
||||||
|
|
||||||
copy_model(PostUpload)
|
copy_model(PostUpload)
|
||||||
@ -681,7 +684,8 @@ class BulkImport::DiscourseMerger < BulkImport::Base
|
|||||||
|
|
||||||
@topics.each do |old_topic_id, new_topic_id|
|
@topics.each do |old_topic_id, new_topic_id|
|
||||||
current += 1
|
current += 1
|
||||||
puts "#{current} completed. #{update_count} rows updated." if current % 200 == 0
|
percent = (current * 100) / total
|
||||||
|
puts "#{current} (#{percent}\%) completed. #{update_count} rows updated." if current % 200 == 0
|
||||||
|
|
||||||
if topic = Topic.find_by_id(new_topic_id)
|
if topic = Topic.find_by_id(new_topic_id)
|
||||||
replace_arg = [
|
replace_arg = [
|
||||||
|
Loading…
Reference in New Issue
Block a user