From 36037ea05a16215758c94da89e4f7434954e4a89 Mon Sep 17 00:00:00 2001 From: saint Date: Fri, 16 Aug 2024 21:34:02 +1000 Subject: [PATCH] v0.37.1 Huge move to threaded support for topic-post import; disable topic-post import for current user re-import 202408162130, persistence for exported files --- gossamer_forums.rb | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/gossamer_forums.rb b/gossamer_forums.rb index 0e016e0..2cb5b68 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -1,7 +1,7 @@ # Federated Computer, Inc. # David Sainty 2024 A.D. # Gossamer Threads to Discourse -- Migration-Import Script -# v0.37 Huge move to threaded support for topic-post import; disable topic-post import for current user re-import 202408162130 +# v0.37.1 Huge move to threaded support for topic-post import; disable topic-post import for current user re-import 202408162130, persistence for exported files require 'mysql2' require 'open-uri' @@ -1633,18 +1633,19 @@ class GossamerForumsImporter < ImportScripts::Base add_former_user import_users - export_username_mapping_to_csv("gossamer-migration-username-mapping#{timestamp}") + export_username_mapping_to_csv("/bitnami/discourse/sqlite/gossamer-migration-username-mapping#{timestamp}") import_categories - # import_topics_and_posts_with_attachments - threaded_topic_import - 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 - import_personal_messages + # threaded_topic_import + # update_topic_stats + # update_user_stats + # export_url_mapping_to_csv("/bitnami/discourse/sqlite/gossamer-migration-url-mapping#{timestamp}") + # create_nginx_rewrite_rules("/bitnami/discourse/sqlite/gossamer-redirects#{timestamp}.conf") + + # import_personal_messages puts "Gossamer Forums import complete! #{timestamp}" end