v0.58 Final user import and personal message import run

This commit is contained in:
David Sainty 2024-08-31 23:13:23 +10:00
parent f27447bbc1
commit e468a356ff

View File

@ -666,7 +666,8 @@ class GossamerForumsImporter < ImportScripts::Base
users = [] users = []
# Fetch all users from Gossamer Forums # Fetch all users from Gossamer Forums
execute_query("SELECT * FROM gforum_User").each do |row| # execute_query("SELECT * FROM gforum_User").each do |row|
execute_query("SELECT user_id, user_username, user_email, user_real_name, user_registered, user_last_seen, user_title, user_about, user_homepage, user_location, user_password FROM gforum_User WHERE user_id > 123381").each do |row|
users << { users << {
id: row['user_id'], id: row['user_id'],
username: sanitize_username(row['user_username'], row['user_email'], row['user_real_name']), username: sanitize_username(row['user_username'], row['user_email'], row['user_real_name']),
@ -710,7 +711,8 @@ class GossamerForumsImporter < ImportScripts::Base
users = [] users = []
# Fetch all users from Gossamer Forums # Fetch all users from Gossamer Forums
execute_query("SELECT * FROM gforum_User").each do |row| # execute_query("SELECT * FROM gforum_User").each do |row|
execute_query("SELECT user_id, user_username, user_email, user_real_name, user_registered, user_last_seen, user_title, user_about, user_homepage, user_location, user_password FROM gforum_User WHERE user_id > 123381").each do |row|
users << { users << {
id: row['user_id'], id: row['user_id'],
username: sanitize_username(row['user_username'], row['user_email'], row['user_real_name']), username: sanitize_username(row['user_username'], row['user_email'], row['user_real_name']),
@ -2044,7 +2046,7 @@ class GossamerForumsImporter < ImportScripts::Base
generate_user_id_mapping generate_user_id_mapping
export_username_mapping_to_csv("/bitnami/discourse/sqlite/gossamer-migration-username-mapping#{timestamp}") export_username_mapping_to_csv("/bitnami/discourse/sqlite/gossamer-migration-username-mapping#{timestamp}")
# set_user_bio_images set_user_bio_images
# import_categories # import_categories