From 798153c8fc9cc0beb0a60b9ff85abc880772c513 Mon Sep 17 00:00:00 2001 From: saint Date: Sun, 18 Aug 2024 03:35:41 +1000 Subject: [PATCH] v0.43 Move to connection pooling for MySQL problem --- gossamer_forums.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gossamer_forums.rb b/gossamer_forums.rb index 87cd860..fdd7102 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -49,12 +49,12 @@ class GossamerForumsImporter < ImportScripts::Base @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 - @db.execute <<-SQL - DROP TABLE IF EXISTS url_map; - SQL - @db.execute <<-SQL - DROP TABLE IF EXISTS topic_import_status; - SQL +# @db.execute <<-SQL +# DROP TABLE IF EXISTS url_map; +# SQL +# @db.execute <<-SQL +# DROP TABLE IF EXISTS topic_import_status; +# SQL @db.execute <<-SQL CREATE TABLE IF NOT EXISTS user_id_map (