diff --git a/gossamer_forums.rb b/gossamer_forums.rb index 695e61c..9766f06 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -666,7 +666,8 @@ class GossamerForumsImporter < ImportScripts::Base users = [] # 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 << { id: row['user_id'], username: sanitize_username(row['user_username'], row['user_email'], row['user_real_name']), @@ -710,7 +711,8 @@ class GossamerForumsImporter < ImportScripts::Base users = [] # 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 << { id: row['user_id'], 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 export_username_mapping_to_csv("/bitnami/discourse/sqlite/gossamer-migration-username-mapping#{timestamp}") -# set_user_bio_images + set_user_bio_images # import_categories