# Update auf 5.3 oder 5.4 oder höher funktioniert nicht

**URL:** <https://forum.shopware.com/t/update-auf-5-3-oder-5-4-oder-hoeher-funktioniert-nicht/101749>\
**Category:** Allgemein\
**Created:** [31. Oktober 2023 um 09:45 UTC](https://forum.shopware.com/t/update-auf-5-3-oder-5-4-oder-hoeher-funktioniert-nicht/101749 "2023-10-31T09:45:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MissMissy](https://avatars.discourse-cdn.com/v4/letter/m/a9adbd/32.png) [@MissMissy](https://forum.shopware.com/u/MissMissy)\
**Post date:** [31. Oktober 2023 um 09:45 UTC](https://forum.shopware.com/t/update-auf-5-3-oder-5-4-oder-hoeher-funktioniert-nicht/101749/1 "2023-10-31T09:45:29Z")

</div>

Hallo!

Es heißt ja immer so schön „never touch a running system“. Haben wir gemacht. Unser Shop läuft seit einiger Zeit gut und stabil - mit der 5.2.27. Zugegeben - mittlerweile ziemlich alt. Nun wollten wir endlich mal updaten. Aber das klappt nicht so recht. Deshalb bitte ich um eure Tipps!

Ich versuche von 5.2.27 auf eine höhere Version zu kommen. Habe auf 5.3.0, 5.4.6 oder auch direkt auf 5.5.0 versucht - aber immer mit demselben Fehler (s.u.).

Da das Thema nicht neu ist, habe ich natürlich schon diverse Postings hier im Forum durchgesehen. So habe ich bspw. diverse Tabellen geprüft bzw. gelöscht, die problematisch sind. Als da wären:

s\_order\_basket\_signatures,  
s\_core\_auth\_config,  
s\_search\_custom\_sorting,  
s\_customer\_streams\_mapping,  
s\_customer\_streams\_attributes,  
s\_customer\_streams,  
s\_customer\_search\_index,  
s\_emotion\_presets → DROP COLUMN emotion\_translations

Dadurch erhalte ich keinen der sonst im Forum erwähnten Fehler.  
ABER - natürlich bekomme ich dennoch einen Fehler - einen neuen bzw. anderen, für den ich im Forum bislang keine Lösung fand:

```auto
## Error

Received the following error message:
Could not apply migration (Migrations_Migration934). Error: SQLSTATE[HY000]: General error: 1005 Can't create table `db7005_3`.`s_customer_streams_attributes` (errno: 150 "Foreign key constraint is incorrectly formed")

Please try to fix this error and restart the update.

### Response

{"valid":false,"errorMsg":"Could not apply migration (Migrations_Migration934). Error: SQLSTATE[HY000]: General error: 1005 Can't create table `db7005_3`.`s_customer_streams_attributes` (errno: 150 \"Foreign key constraint is incorrectly formed\") "}

```

Was kann ich jetzt machen?  
Dummerweise gibt es nicht einmal mehr die Übersicht der Migrationscodes …

---

<div class="post-metadata">

**Author:** ![MissMissy](https://avatars.discourse-cdn.com/v4/letter/m/a9adbd/32.png) [@MissMissy](https://forum.shopware.com/u/MissMissy)\
**Post date:** [2. November 2023 um 07:28 UTC](https://forum.shopware.com/t/update-auf-5-3-oder-5-4-oder-hoeher-funktioniert-nicht/101749/2 "2023-11-02T07:28:42Z")

</div>

Hm … hat niemand eine Idee?

---

<div class="post-metadata">

**Author:** ![MrAle](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@MrAle](https://forum.shopware.com/u/MrAle)\
**Post date:** [2. November 2023 um 13:09 UTC](https://forum.shopware.com/t/update-auf-5-3-oder-5-4-oder-hoeher-funktioniert-nicht/101749/3 "2023-11-02T13:09:09Z")

</div>

Hey, hast du das schon getestet, also im speziellen den Repair:

> **[Shopware 5 - Tutorials & FAQs - Repairing the foreign keys](https://docs.shopware.com/en/shopware-5-en/tutorials-and-faq/repair-foreign-keys)**
>
> In certain circumstances, and only with some hosting providers, it may occur that the foreign keys required by Shopware are lost. The model generation of attribute models requires these keys, so that the attributes can be created correctly.

Falls du ne Testumgebung mit sauberen Daten hast kannst du dich gerne mal melden und schau was ich für dich tun kann.

Grüße

---

<div class="post-metadata">

**Author:** ![MissMissy](https://avatars.discourse-cdn.com/v4/letter/m/a9adbd/32.png) [@MissMissy](https://forum.shopware.com/u/MissMissy)\
**Post date:** [6. November 2023 um 09:27 UTC](https://forum.shopware.com/t/update-auf-5-3-oder-5-4-oder-hoeher-funktioniert-nicht/101749/4 "2023-11-06T09:27:50Z")

</div>

Danke für den Tipp, MrAle! Die Reparatur der Foreign Keys hat geholfen.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/2/9/29c7587ba660f00e4995d1743162782e5d6d8653.svg) [@system](https://forum.shopware.com/u/system)\
**Post date:** [6. Dezember 2023 um 09:28 UTC](https://forum.shopware.com/t/update-auf-5-3-oder-5-4-oder-hoeher-funktioniert-nicht/101749/5 "2023-12-06T09:28:22Z")

</div>

Dieses Thema wurde automatisch 30 Tage nach der letzten Antwort geschlossen. Es sind keine neuen Antworten mehr erlaubt.
