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
This commit is contained in:
parent
84162b1b78
commit
36037ea05a
@ -1,7 +1,7 @@
|
||||
# Federated Computer, Inc.
|
||||
# David Sainty <saint@federated.computer> 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
|
||||
|
Loading…
Reference in New Issue
Block a user