Hi all!
I’m trying to duplicate the structure of a category (copy all sub-categories from the previous version 26 to new version 27).
What I’m doing :
- I create my new category 27, and note its id
- I export a json with command discourse export_category 26
- I edit the json file to keep only categories, I change the slugs to keep them unique, …
- for each sub-category, I set “parent_category_id”: new category id
I then import my edited json with discourse import_category file.json
My sub-categories are then imported but NOT in my new category, they have no parent.
What is the right way to import in a category?