From 2d73b55419adc6e6cb4e07521eec0e8a08c6948b Mon Sep 17 00:00:00 2001 From: saint Date: Mon, 15 Jul 2024 14:17:12 +1000 Subject: [PATCH] v0.34 Completing public topic-post import with script mostly completed and validated. --- gossamer_forums.rb | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/gossamer_forums.rb b/gossamer_forums.rb index f4bad20..9d0e224 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -1,5 +1,5 @@ # gossamer threads migration-import code -# v0.31.4 +# v0.32 require 'mysql2' require 'open-uri' @@ -1190,7 +1190,7 @@ class GossamerForumsImporter < ImportScripts::Base puts "Highest processed personal_id: #{highest_processed_personal_id}" # OVERRIDE - to speed getting to problem msg - highest_processed_personal_id = 1543840 +# # # highest_processed_personal_id = 1543840 puts "Highest processed personal_id override: #{highest_processed_personal_id}" execute_query("SELECT * FROM gforum_Message").each do |row| @@ -1307,17 +1307,17 @@ class GossamerForumsImporter < ImportScripts::Base puts "Starting Gossamer Forums import... #{timestamp}" -# add_former_user -# import_users -# export_username_mapping_to_csv("gossamer-migration-username-mapping#{timestamp}") + add_former_user + import_users + export_username_mapping_to_csv("gossamer-migration-username-mapping#{timestamp}") -# import_categories + import_categories -# # # import_topics_and_posts_with_attachments -# update_topic_stats -# update_user_stats -# export_url_mapping_to_csv("gossamer-migration-url-mapping#{timestamp}") -# create_nginx_rewrite_rules("gossamer-redirects#{timestamp}.conf") + import_topics_and_posts_with_attachments + update_topic_stats + update_user_stats + export_url_mapping_to_csv("gossamer-migration-url-mapping#{timestamp}") + create_nginx_rewrite_rules("gossamer-redirects#{timestamp}.conf") import_personal_messages