# Обновление не удалось из-за ошибки дублирования ключа ("index post hotlinked media on post id and url md5")

**URL:** <https://meta.discourse.org/t/upgrade-fails-on-duplicate-key-error-index-post-hotlinked-media-on-post-id-and-url-md5/226002>\
**Category:** Bug\
**Created:** [03.Май.2022 15:34:51 UTC](https://meta.discourse.org/t/upgrade-fails-on-duplicate-key-error-index-post-hotlinked-media-on-post-id-and-url-md5/226002 "2022-05-03T15:34:51Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [03.Май.2022 16:15:10 UTC](https://meta.discourse.org/t/upgrade-fails-on-duplicate-key-error-index-post-hotlinked-media-on-post-id-and-url-md5/226002/4 "2022-05-03T16:15:10Z")

</div>

Да, всё верно. Исправление уже в работе, должно быть слито в ближайшие несколько минут. Спасибо за сообщение @axfelix

> <https://github.com/discourse/discourse/pull/16611>
>
> In the old custom\_field-based system, it was possible for a url to be both 'down…loaded' and 'broken'. The new table enforces uniqueness, so we need to drop invalid data.

---

_[View the full topic](https://meta.discourse.org/t/upgrade-fails-on-duplicate-key-error-index-post-hotlinked-media-on-post-id-and-url-md5/226002)._
