v0.36.7 Tweak for re-running as of 20240816
This commit is contained in:
parent
40421e751b
commit
1ae297ba74
@ -1,7 +1,7 @@
|
|||||||
# Federated Computer, Inc.
|
# Federated Computer, Inc.
|
||||||
# David Sainty <saint@federated.computer> 2024 A.D.
|
# David Sainty <saint@federated.computer> 2024 A.D.
|
||||||
# Gossamer Threads to Discourse -- Migration-Import Script
|
# Gossamer Threads to Discourse -- Migration-Import Script
|
||||||
# v0.36.6 Disable TIFF support for now. It was a minor corner case to support. Added other image types. Added exception handling back to user image handling.
|
# v0.36.7 Tweak for re-running as of 20240816
|
||||||
|
|
||||||
require 'mysql2'
|
require 'mysql2'
|
||||||
require 'open-uri'
|
require 'open-uri'
|
||||||
@ -610,10 +610,10 @@ class GossamerForumsImporter < ImportScripts::Base
|
|||||||
discourse_user.user_profile.save!
|
discourse_user.user_profile.save!
|
||||||
|
|
||||||
# Import user files
|
# Import user files
|
||||||
# TEMPORARY!!
|
# TEMPORARY!! -- Use if script is interrupted mid-user-importing.
|
||||||
if user[:id] > 353
|
# if user[:id] > 353
|
||||||
import_user_files(discourse_user)
|
import_user_files(discourse_user)
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -1380,12 +1380,12 @@ class GossamerForumsImporter < ImportScripts::Base
|
|||||||
|
|
||||||
puts "Starting Gossamer Forums import... #{timestamp}"
|
puts "Starting Gossamer Forums import... #{timestamp}"
|
||||||
|
|
||||||
add_former_user
|
# add_former_user
|
||||||
import_users
|
# import_users
|
||||||
export_username_mapping_to_csv("gossamer-migration-username-mapping#{timestamp}")
|
# export_username_mapping_to_csv("gossamer-migration-username-mapping#{timestamp}")
|
||||||
|
#
|
||||||
import_categories
|
# import_categories
|
||||||
|
#
|
||||||
import_topics_and_posts_with_attachments
|
import_topics_and_posts_with_attachments
|
||||||
update_topic_stats
|
update_topic_stats
|
||||||
update_user_stats
|
update_user_stats
|
||||||
|
Loading…
Reference in New Issue
Block a user