# Fallo al actualizar de 2.7 a 3.1: "hotlinked\_media\_status" ya existe

**URL:** <https://meta.discourse.org/t/upgrading-2-7-to-3-1-failing-hotlinked-media-status-already-exists/277313>\
**Category:** Self-hosting\
**Created:** [31 Agosto, 2023 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:** 26

<div class="post-metadata">

**Author:** ![Hotfirenet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hotfirenet/32/120124_2.png) [@Hotfirenet](https://meta.discourse.org/u/Hotfirenet)\
**Post date:** [31 Agosto, 2023 15:20 UTC](https://meta.discourse.org/t/upgrading-2-7-to-3-1-failing-hotlinked-media-status-already-exists/277313/26 "2023-08-31T15:20:16Z")

</div>

Encuentro la solución

```plaintext
DO $$ BEGIN CREATE TYPE hotlinked_media_status AS ENUM('downloaded', 'too_large', 'download_failed', 'upload_create_failed'); EXCEPTION WHEN duplicate_object THEN null; END $$;

```

20220428094026\_create\_post\_hotlinked\_media.rb

---

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