v0.48.1 Further attempts to address MariaDB challenges and make things as foolproof as possible.
This commit is contained in:
parent
ad7a5f945c
commit
f3c91267af
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user