# 如何将私信从Drupal迁移到Discourse

**URL:** <https://meta.discourse.org/t/how-to-migrate-private-messages-from-drupal-to-discourse/320144>\
**Category:** Migration\
**Tags:** drupal, personal-messages\
**Created:** [2024 年8 月 5 日 11:29 UTC](https://meta.discourse.org/t/how-to-migrate-private-messages-from-drupal-to-discourse/320144 "2024-08-05T11:29:36Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![domainghost](https://avatars.discourse-cdn.com/v4/letter/d/bbce88/32.png) [@domainghost](https://meta.discourse.org/u/domainghost)\
**Post date:** [2024 年8 月 6 日 08:05 UTC](https://meta.discourse.org/t/how-to-migrate-private-messages-from-drupal-to-discourse/320144/3 "2024-08-06T08:05:59Z")

</div>

您好 @pfaffman 感谢您的回复。是的，我正在使用 drupal.rb，但该脚本不包含私信功能，所以我必须单独处理。我还发现在 Discourse 中哪个模型负责私信，但当话题导入到 Discourse 后，Discourse 中的用户 ID 发生了变化，尽管我在脚本中传递了相同的 ID。因此，现在当我导入私信时，在为发件人和收件人用户导入正确的消息时遇到了困难。

您能否给我一些关于如何将私信映射到正确用户的建议？

谢谢！！

---

_[View the full topic](https://meta.discourse.org/t/how-to-migrate-private-messages-from-drupal-to-discourse/320144)._
