# 升级 2.7 到 3.1 失败："hotlinked\_media\_status" 已存在

**URL:** <https://meta.discourse.org/t/upgrading-2-7-to-3-1-failing-hotlinked-media-status-already-exists/277313>\
**Category:** Self-hosting\
**Created:** [2023年八月31日 08:44 UTC](https://meta.discourse.org/t/upgrading-2-7-to-3-1-failing-hotlinked-media-status-already-exists/277313 "2023-08-31T08:44:32Z")\
**Posts on this page:** 1\
**Showing post:** 25

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [2023年八月31日 12:35 UTC](https://meta.discourse.org/t/upgrading-2-7-to-3-1-failing-hotlinked-media-status-already-exists/277313/25 "2023-08-31T12:35:50Z")

</div>

去年对此进行过一次修复，奇怪的是。

> [@Upgrade fails on duplicate key error ("index post hotlinked media on post id and url md5")](https://meta.discourse.org/t/upgrade-fails-on-duplicate-key-error-index-post-hotlinked-media-on-post-id-and-url-md5/226002/10?u=merefield):
>
> Great, thanks for confirming! I opened a PR with a fix for that one:

@david 抱歉提及您，但这与该修复完全相关，您愿意在此发表意见吗？

---

_[View the full topic](https://meta.discourse.org/t/upgrading-2-7-to-3-1-failing-hotlinked-media-status-already-exists/277313)._
