# Foreign key constraint is incorrectly formed bei Update auf 6.5.x

**URL:** <https://forum.shopware.com/t/foreign-key-constraint-is-incorrectly-formed-bei-update-auf-6-5-x/101202>\
**Category:** Installation / Einstieg\
**Created:** [10. September 2023 um 09:36 UTC](https://forum.shopware.com/t/foreign-key-constraint-is-incorrectly-formed-bei-update-auf-6-5-x/101202 "2023-09-10T09:36:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![webarbeit](https://avatars.discourse-cdn.com/v4/letter/w/b487fb/32.png) [@webarbeit](https://forum.shopware.com/u/webarbeit)\
**Post date:** [10. September 2023 um 09:36 UTC](https://forum.shopware.com/t/foreign-key-constraint-is-incorrectly-formed-bei-update-auf-6-5-x/101202/1 "2023-09-10T09:36:09Z")

</div>

Hallo zusammen,

ich bekomme beim Update von 6.4.20 auf 6.5.x einen Foreign key constraint is incorrectly formed-Fehler.

```auto
[Doctrine\DBAL\Exception\DriverException (1025)]                             
  An exception occurred while executing a query: SQLSTATE[HY000]: General err  
  or: 1025 Error on rename of './xxx/#sql-alter-8a02-4b68' to './xxx
  4/order_customer' (errno: 150 "Foreign key constraint is incorrectly formed  
  ")

```

Datenbank: MariaDB 10.6.12  
Hoster: All-Inkl (eigener Server)

Ich habe folgenden Hinweis gefunden, konnte ihn aber hier nicht anwenden:

> **[Shopware Issuetracker](https://issues.shopware.com/issues/NEXT-4072)**
>
> Shopware Issuetracker

Kann mir hier jemand weiterhelfen und hat einen Tipp?

Vielen Dank vorab und Grüße,  
Frank
