# Merging two Discourse forums

**URL:** <https://meta.discourse.org/t/merging-two-discourse-forums/72578>\
**Category:** Migration\
**Created:** [23 Octubre, 2017 00:23 UTC](https://meta.discourse.org/t/merging-two-discourse-forums/72578 "2017-10-23T00:23:27Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)\
**Post date:** [26 Octubre, 2017 20:57 UTC](https://meta.discourse.org/t/merging-two-discourse-forums/72578/20 "2017-10-26T20:57:58Z")

</div>

Success! 🎉

With @pfaffman’s guidance, deleting `import_id` from both Discourses before export/import worked:

```
rails c
UserCustomField.where(name: 'import_id').delete_all
GroupCustomField.where(name: 'import_id').delete_all
CategoryCustomField.where(name: 'import_id').delete_all
PostCustomField.where(name: 'import_id').delete_all

```

This did not work:  
`discourse import_category /category-export-2017-10-25-225306.json`

but this did:  
`bundle exec discourse import_category /category-export-2017-10-25-225306.json`

Having to delete `import_id` from the Discourse that was converted with the phpBB importer prevents me from doing a leisurely initial import first and an incremental import later, but I can live with that.

Many thanks to @neil and @pfaffman!

---

_[View the full topic](https://meta.discourse.org/t/merging-two-discourse-forums/72578)._
