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