v0.27 Prep to test code after post import
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
				
			|||||||
# gossamer threads migration-import code
 | 
					# gossamer threads migration-import code
 | 
				
			||||||
# v0.26.3
 | 
					# v0.27
 | 
				
			||||||
 | 
					
 | 
				
			||||||
require 'mysql2'
 | 
					require 'mysql2'
 | 
				
			||||||
require 'open-uri'
 | 
					require 'open-uri'
 | 
				
			||||||
@@ -872,7 +872,7 @@ class GossamerForumsImporter < ImportScripts::Base
 | 
				
			|||||||
    puts "Highest processed post_id: #{highest_processed_post_id}"
 | 
					    puts "Highest processed post_id: #{highest_processed_post_id}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# OVERRIDE........
 | 
					# OVERRIDE........
 | 
				
			||||||
    highest_processed_post_id = 1359862
 | 
					#   Attachment example:  highest_processed_post_id = 1359862 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Execute the query to get all posts ordered by post_id
 | 
					    # Execute the query to get all posts ordered by post_id
 | 
				
			||||||
    execute_query("SELECT * FROM gforum_Post ORDER BY post_id").each do |row|
 | 
					    execute_query("SELECT * FROM gforum_Post ORDER BY post_id").each do |row|
 | 
				
			||||||
@@ -1208,7 +1208,7 @@ class GossamerForumsImporter < ImportScripts::Base
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#    import_categories
 | 
					#    import_categories
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    import_topics_and_posts_with_attachments
 | 
					#    import_topics_and_posts_with_attachments
 | 
				
			||||||
    update_topic_and_user_stats
 | 
					    update_topic_and_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")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user