mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 12:27:16 +08:00
FEATURE: Import script for jForum
This commit is contained in:
33
script/import_scripts/settings/jforum.yml
Normal file
33
script/import_scripts/settings/jforum.yml
Normal file
@ -0,0 +1,33 @@
|
||||
database:
|
||||
host: localhost
|
||||
port: 3306
|
||||
username: root
|
||||
password: password
|
||||
schema: db_name
|
||||
|
||||
avatar_directory: /shared/import/avatar
|
||||
attachment_directory: /shared/import/upload
|
||||
|
||||
# folder name of old forum in URL
|
||||
permalink_prefix: foo
|
||||
|
||||
import_categories_as_tags: true
|
||||
|
||||
additional_tags:
|
||||
- old_category_name: !ruby/regexp '/something/'
|
||||
tag_names:
|
||||
- "Foo"
|
||||
- "Bar"
|
||||
|
||||
category_mappings:
|
||||
- old_category_name: !ruby/regexp '/HIDDEN/'
|
||||
category_id: 23
|
||||
|
||||
custom_fields:
|
||||
- name: "State"
|
||||
column: "state_porvince"
|
||||
- name: "Country"
|
||||
column: "user_from"
|
||||
- name: "Company"
|
||||
column: "company_name"
|
||||
alias: "company"
|
Reference in New Issue
Block a user