v0.39.1 Add SQLite table for tracking successful post importation; Split out user import into three separate callable methods; require sys/proctable
This commit is contained in:
parent
5002b90712
commit
ea1dae98d7
@ -1,7 +1,7 @@
|
||||
# Federated Computer, Inc.
|
||||
# David Sainty <saint@federated.computer> 2024 A.D.
|
||||
# Gossamer Threads to Discourse -- Migration-Import Script
|
||||
# v0.39 Add SQLite table for tracking successful post importation; Split out user import into three separate callable methods; require sys/proctable
|
||||
# v0.39.1 Add SQLite table for tracking successful post importation; Split out user import into three separate callable methods; require sys/proctable
|
||||
|
||||
require 'mysql2'
|
||||
require 'open-uri'
|
||||
@ -1703,16 +1703,18 @@ class GossamerForumsImporter < ImportScripts::Base
|
||||
|
||||
add_former_user
|
||||
import_users
|
||||
export_username_mapping_to_csv("/bitnami/discourse/sqlite/gossamer-migration-username-mapping#{timestamp}")
|
||||
|
||||
generate_user_id_mapping
|
||||
export_username_mapping_to_csv("/bitnami/discourse/sqlite/gossamer-migration-username-mapping#{timestamp}")
|
||||
|
||||
# set_user_bio_images
|
||||
|
||||
import_categories
|
||||
|
||||
#### import_topics_and_posts_with_attachments
|
||||
|
||||
# threaded_topic_import
|
||||
threaded_topic_import
|
||||
|
||||
# update_topic_stats
|
||||
# update_user_stats
|
||||
# export_url_mapping_to_csv("/bitnami/discourse/sqlite/gossamer-migration-url-mapping#{timestamp}")
|
||||
|
Loading…
Reference in New Issue
Block a user