# Update von 6.7.8.2 auf 6.7.12.1 - General error: 1553 Cannot drop index '': needed in a foreign key constraint"

**URL:** <https://forum.shopware.com/t/update-von-6-7-8-2-auf-6-7-12-1-general-error-1553-cannot-drop-index-needed-in-a-foreign-key-constraint/109375>\
**Category:** Administration\
**Tags:** update\
**Created:** [21. Juli 2026 um 08:26 UTC](https://forum.shopware.com/t/update-von-6-7-8-2-auf-6-7-12-1-general-error-1553-cannot-drop-index-needed-in-a-foreign-key-constraint/109375 "2026-07-21T08:26:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pout](https://avatars.discourse-cdn.com/v4/letter/p/f9ae1b/32.png) [@pout](https://forum.shopware.com/u/pout)\
**Post date:** [21. Juli 2026 um 08:26 UTC](https://forum.shopware.com/t/update-von-6-7-8-2-auf-6-7-12-1-general-error-1553-cannot-drop-index-needed-in-a-foreign-key-constraint/109375/1 "2026-07-21T08:26:45Z")

</div>

Hallo,

PHP 8.4  
MySQL 8.4

ich erhalte folgende Fehler-Meldung beim Update:

Run Post Update  
Get collection for identifier: „core“  
migrate Migrations  
0/65 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0% \< 1 ms/\< 1 ms 167.0 MiB  
1/65 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 1% 2 s/2 min, 10 s 167.0 MiB07:57:47 ERROR [app] Migration: „Shopware\Core\Migration\V6\_7\Migration1772007509ProductMainCategoryInheritance“ failed: „An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1553 Cannot drop index ‚‘: needed in a foreign key constraint“

* * *

Action Number of migrations

* * *

Migrated 6 out of 65

* * *

Was kann ich tun?  
Danke

Roman

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [21. Juli 2026 um 10:33 UTC](https://forum.shopware.com/t/update-von-6-7-8-2-auf-6-7-12-1-general-error-1553-cannot-drop-index-needed-in-a-foreign-key-constraint/109375/2 "2026-07-21T10:33:49Z")

</div>

In der Datenbank den Parameter ‚restrict\_fk\_on\_non\_standard\_key‘ auf Off bzw. 0 stellen.

Siehe dazu:

> **[MySQL Bugs: #118151: When creating an index: ERROR 1553 (HY000): Cannot drop...](https://bugs.mysql.com/bug.php?id=118151)**

---

<div class="post-metadata">

**Author:** ![shyim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shyim/32/7681_2.png) [@shyim](https://forum.shopware.com/u/shyim)\
**Post date:** [22. Juli 2026 um 15:45 UTC](https://forum.shopware.com/t/update-von-6-7-8-2-auf-6-7-12-1-general-error-1553-cannot-drop-index-needed-in-a-foreign-key-constraint/109375/3 "2026-07-22T15:45:44Z")

</div>

Hey,

hab mal ein issue erstellt. das ist ein echter bug: [MySQL 8.4 upgrade to 6.7.12.1 fails in ProductMainCategoryInheritance migration with error 1553 · Issue #18582 · shopware/shopware · GitHub](https://github.com/shopware/shopware/issues/18582)

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [23. Juli 2026 um 06:04 UTC](https://forum.shopware.com/t/update-von-6-7-8-2-auf-6-7-12-1-general-error-1553-cannot-drop-index-needed-in-a-foreign-key-constraint/109375/4 "2026-07-23T06:04:15Z")

</div>

> [@shyim](#):
>
> das ist ein echter bug

Nur mal so als Nachtrag: Darüber sind auch schon einige Plugin-Hersteller (z.B. Pickware) gestolpert. In der Programmierung kann man das mit

> SET SESSION restrict\_fk\_on\_non\_standard\_key = 0;  
> SET SESSION foreign\_key\_checks = 0;  
> … neue Spalte einfügen ..  
> SET SESSION foreign\_key\_checks = 1;  
> SET SESSION restrict\_fk\_on\_non\_standard\_key = 1;

umgehen.

---

<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:** [22. August 2026 um 06:04 UTC](https://forum.shopware.com/t/update-von-6-7-8-2-auf-6-7-12-1-general-error-1553-cannot-drop-index-needed-in-a-foreign-key-constraint/109375/5 "2026-08-22T06:04:31Z")

</div>

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