v0.41.2 Several bug fixes and improvements for fully concurrent topic-post import
This commit is contained in:
parent
29f66c1e60
commit
7faa849198
@ -76,11 +76,11 @@ class GossamerForumsCleaner
|
|||||||
|
|
||||||
def perform_cleanup
|
def perform_cleanup
|
||||||
puts "Cleanup beginning!"
|
puts "Cleanup beginning!"
|
||||||
cleanup_messages
|
# cleanup_messages
|
||||||
cleanup_posts
|
cleanup_posts
|
||||||
cleanup_topics
|
cleanup_topics
|
||||||
cleanup_categories
|
# cleanup_categories
|
||||||
cleanup_users
|
# cleanup_users
|
||||||
puts "Cleanup complete!"
|
puts "Cleanup complete!"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -47,12 +47,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 (
|
||||||
|
Loading…
Reference in New Issue
Block a user