v0.34 Completing public topic-post import with script mostly completed and validated.
This commit is contained in:
parent
b542dcfd27
commit
2d73b55419
@ -1,5 +1,5 @@
|
|||||||
# gossamer threads migration-import code
|
# gossamer threads migration-import code
|
||||||
# v0.31.4
|
# v0.32
|
||||||
|
|
||||||
require 'mysql2'
|
require 'mysql2'
|
||||||
require 'open-uri'
|
require 'open-uri'
|
||||||
@ -1190,7 +1190,7 @@ class GossamerForumsImporter < ImportScripts::Base
|
|||||||
puts "Highest processed personal_id: #{highest_processed_personal_id}"
|
puts "Highest processed personal_id: #{highest_processed_personal_id}"
|
||||||
|
|
||||||
# OVERRIDE - to speed getting to problem msg
|
# OVERRIDE - to speed getting to problem msg
|
||||||
highest_processed_personal_id = 1543840
|
# # # highest_processed_personal_id = 1543840
|
||||||
puts "Highest processed personal_id override: #{highest_processed_personal_id}"
|
puts "Highest processed personal_id override: #{highest_processed_personal_id}"
|
||||||
|
|
||||||
execute_query("SELECT * FROM gforum_Message").each do |row|
|
execute_query("SELECT * FROM gforum_Message").each do |row|
|
||||||
@ -1307,17 +1307,17 @@ class GossamerForumsImporter < ImportScripts::Base
|
|||||||
|
|
||||||
puts "Starting Gossamer Forums import... #{timestamp}"
|
puts "Starting Gossamer Forums import... #{timestamp}"
|
||||||
|
|
||||||
# add_former_user
|
add_former_user
|
||||||
# import_users
|
import_users
|
||||||
# export_username_mapping_to_csv("gossamer-migration-username-mapping#{timestamp}")
|
export_username_mapping_to_csv("gossamer-migration-username-mapping#{timestamp}")
|
||||||
|
|
||||||
# import_categories
|
import_categories
|
||||||
|
|
||||||
# # # import_topics_and_posts_with_attachments
|
import_topics_and_posts_with_attachments
|
||||||
# update_topic_stats
|
update_topic_stats
|
||||||
# update_user_stats
|
update_user_stats
|
||||||
# export_url_mapping_to_csv("gossamer-migration-url-mapping#{timestamp}")
|
export_url_mapping_to_csv("gossamer-migration-url-mapping#{timestamp}")
|
||||||
# create_nginx_rewrite_rules("gossamer-redirects#{timestamp}.conf")
|
create_nginx_rewrite_rules("gossamer-redirects#{timestamp}.conf")
|
||||||
|
|
||||||
import_personal_messages
|
import_personal_messages
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user