A platform for community discussion. Free, open, simple.
fix vanilla bulk importer resume categories and private topics
Neil Lalonded7bd69583f05
diff --git a/script/bulk_import/vanilla.rb b/script/bulk_import/vanilla.rbindex 37b6acf231e..771a3ef67bb 100644--- a/script/bulk_import/vanilla.rb+++ b/script/bulk_import/vanilla.rb@@ -285,6 +285,7 @@ class BulkImport::Vanilla < BulkImport::Base# Depth = 2create_categories(top_level_categories) do |category|+ next if category_id_from_imported_id(category['CategoryID']){imported_id: category['CategoryID'],name: CGI.unescapeHTML(category['Name']),@@ -299,6 +300,7 @@ class BulkImport::Vanilla < BulkImport::Base# Depth = 3create_categories(subcategories) do |category|+ next if category_id_from_imported_id(category['CategoryID']){imported_id: category['CategoryID'],parent_category_id: category_id_from_imported_id(category['ParentCategoryID']),@@ -456,6 +458,7 @@ class BulkImport::Vanilla < BulkImport::BaseSELECT ConversationID, UserIDFROM #{TABLE_PREFIX}UserConversationWHERE Deleted = 0+ AND ConversationID > #{@last_imported_private_topic_id - PRIVATE_OFFSET}ORDER BY ConversationID ASC"added = 0