# 임베디드 토픽을 topicId에서 자동 토픽 생성으로 마이그레이션

**URL:** <https://meta.discourse.org/t/migrating-embedded-topics-from-topicid-to-automatic-topic-creation/284553>\
**Category:** Migration\
**Tags:** embedding\
**Created:** [11월 6, 2023, 11:29오전 UTC](https://meta.discourse.org/t/migrating-embedded-topics-from-topicid-to-automatic-topic-creation/284553 "2023-11-06T11:29:15Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![n1bff](https://avatars.discourse-cdn.com/v4/letter/n/e95f7d/32.png) [@n1bff](https://meta.discourse.org/u/n1bff)\
**Post date:** [2월 23, 2024, 9:49오후 UTC](https://meta.discourse.org/t/migrating-embedded-topics-from-topicid-to-automatic-topic-creation/284553/4 "2024-02-23T21:49:39Z")

</div>

저장된 `topicId`가 있으면 이를 사용하고, 그렇지 않으면 페이지의 `discourseEmbedUrl`을 사용하는 간단한 if 스위치를 웹사이트에 추가했습니다.

불행히도 일부 페이지에 잘못된 URL을 사용했는데, 이로 인해 페이지와 스레드 사이에 잘못된 스레드 참조가 발생했습니다. `topic_embeds` 테이블을 찾았는데, 이것이 원인이 맞는 것 같습니다. 이 테이블에서 안전하게 삭제한 뒤 페이지를 다시 방문하여 스레드를 재생성할 수 있을까요? 아니면 다른 곳에 있는 관련 행들도 정리해야 하나요?

---

_[View the full topic](https://meta.discourse.org/t/migrating-embedded-topics-from-topicid-to-automatic-topic-creation/284553)._
