v0.43 Move to connection pooling for MySQL problem

This commit is contained in:
David Sainty 2024-08-18 03:35:41 +10:00
parent 698c1b0f26
commit 798153c8fc

View File

@ -49,12 +49,12 @@ class GossamerForumsImporter < ImportScripts::Base
@db = SQLite3::Database.new '/bitnami/discourse/sqlite/id_name_url_map.db' @db = SQLite3::Database.new '/bitnami/discourse/sqlite/id_name_url_map.db'
###### ONLY when we need to clear the url_map and topic_import_status .... e.g. if reimporting topics-posts from scratch ###### ONLY when we need to clear the url_map and topic_import_status .... e.g. if reimporting topics-posts from scratch
@db.execute <<-SQL # @db.execute <<-SQL
DROP TABLE IF EXISTS url_map; # DROP TABLE IF EXISTS url_map;
SQL # SQL
@db.execute <<-SQL # @db.execute <<-SQL
DROP TABLE IF EXISTS topic_import_status; # DROP TABLE IF EXISTS topic_import_status;
SQL # SQL
@db.execute <<-SQL @db.execute <<-SQL
CREATE TABLE IF NOT EXISTS user_id_map ( CREATE TABLE IF NOT EXISTS user_id_map (