v0.25.2 Bugfixing...

This commit is contained in:
David Sainty 2024-07-02 14:13:42 +10:00
parent 2627530d48
commit eb929daca5

View File

@ -1,5 +1,5 @@
# gossamer threads migration-import code # gossamer threads migration-import code
# v0.25.1 # v0.25.2
require 'mysql2' require 'mysql2'
require 'open-uri' require 'open-uri'
@ -839,6 +839,9 @@ class GossamerForumsImporter < ImportScripts::Base
highest_processed_post_id = fetch_highest_processed_post_id.to_i highest_processed_post_id = fetch_highest_processed_post_id.to_i
puts "Highest processed post_id: #{highest_processed_post_id}" puts "Highest processed post_id: #{highest_processed_post_id}"
# OVERRIDE........
highest_processed_post_id = 1357010
# 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|
post_id = row['post_id'].to_i post_id = row['post_id'].to_i