mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 00:27:58 +08:00
FIX: bulk importers need to create category description topics
This commit is contained in:
@ -259,6 +259,14 @@ class BulkImport::Base
|
||||
end
|
||||
end
|
||||
|
||||
def create_categories(rows, &block)
|
||||
create_records(rows, "category", CATEGORY_COLUMNS, &block)
|
||||
|
||||
Category.where(topic_id: nil).each do |c|
|
||||
c.create_category_definition
|
||||
end
|
||||
end
|
||||
|
||||
def create_user_emails(rows, &block) create_records(rows, "user_email", USER_EMAIL_COLUMNS, &block); end
|
||||
def create_user_stats(rows, &block) create_records(rows, "user_stat", USER_STAT_COLUMNS, &block); end
|
||||
def create_user_profiles(rows, &block); create_records(rows, "user_profile", USER_PROFILE_COLUMNS, &block); end
|
||||
|
Reference in New Issue
Block a user