# Discourse での旧投稿 ID の保持をインポート

**URL:** <https://meta.discourse.org/t/import-keeping-old-post-ids-in-discourse/99852>\
**Category:** Migration\
**Tags:** kunena\
**Created:** [2018 年 10 月 18 日午前 10:53 UTC](https://meta.discourse.org/t/import-keeping-old-post-ids-in-discourse/99852 "2018-10-18T10:53:27Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![pgr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pgr/32/156783_2.png) [@pgr](https://meta.discourse.org/u/pgr)\
**Post date:** [2018 年 10 月 18 日午後 1:44 UTC](https://meta.discourse.org/t/import-keeping-old-post-ids-in-discourse/99852/8 "2018-10-18T13:44:17Z")

</div>

The approach (without keeping a plug in all the time) could be:

1. Disable automatic serial numbers for topics
2. Import everything with the old ids
3. Re-enable serials, starting at a number larger than the MAX currently used

But ok, I get the point - it’s easier with the permalinks feature. I have found many posts with specific questions about this, mostly people trying to get their regexps right, but I haven’t found any page documenting the actual mechanism in general… is there such a page?

As always, thanks a lot for your help.

---

_[View the full topic](https://meta.discourse.org/t/import-keeping-old-post-ids-in-discourse/99852)._
