From f3c91267af4616cbc9269b808a784175f8cc115c Mon Sep 17 00:00:00 2001 From: saint Date: Sun, 18 Aug 2024 20:27:36 +1000 Subject: [PATCH] v0.48.1 Further attempts to address MariaDB challenges and make things as foolproof as possible. --- gossamer_forums.rb | 54 +++++++++++++++++++++++----------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/gossamer_forums.rb b/gossamer_forums.rb index 0aa72c9..68548e8 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -62,33 +62,33 @@ 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_last_post_time; - SQL - @db.execute <<-SQL - DROP TABLE IF EXISTS topic_post_count; - SQL - @db.execute <<-SQL - DROP TABLE IF EXISTS user_topic_count; - SQL - @db.execute <<-SQL - DROP TABLE IF EXISTS user_post_count; - SQL - @db.execute <<-SQL - DROP TABLE IF EXISTS topic_last_post_user; - SQL - @db.execute <<-SQL - DROP TABLE IF EXISTS topic_post_numbers; - SQL - @db.execute <<-SQL - DROP TABLE IF EXISTS highest_processed_post_id; - 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_last_post_time; +# SQL +# @db.execute <<-SQL +# DROP TABLE IF EXISTS topic_post_count; +# SQL +# @db.execute <<-SQL +# DROP TABLE IF EXISTS user_topic_count; +# SQL +# @db.execute <<-SQL +# DROP TABLE IF EXISTS user_post_count; +# SQL +# @db.execute <<-SQL +# DROP TABLE IF EXISTS topic_last_post_user; +# SQL +# @db.execute <<-SQL +# DROP TABLE IF EXISTS topic_post_numbers; +# SQL +# @db.execute <<-SQL +# DROP TABLE IF EXISTS highest_processed_post_id; +# SQL +# @db.execute <<-SQL +# DROP TABLE IF EXISTS topic_import_status; +# SQL ####### # USER IMPORT - map of old to new user ids, used for topic-post import.