# Update Probleme (Datenbank Migration) von 5.6.4 auf 5.6.5

**URL:** https://forum.shopware.com/t/update-probleme-datenbank-migration-von-5-6-4-auf-5-6-5/65167
**Category:** Administration
**Created:** [3. März 2020 um 11:45 UTC](https://forum.shopware.com/t/update-probleme-datenbank-migration-von-5-6-4-auf-5-6-5/65167 "2020-03-03T11:45:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ehahn](https://avatars.discourse-cdn.com/v4/letter/e/e9c0ed/32.png) [@ehahn](https://forum.shopware.com/u/ehahn)
#### Post date: [3. März 2020 um 11:45 UTC](https://forum.shopware.com/t/update-probleme-datenbank-migration-von-5-6-4-auf-5-6-5/65167/1 "2020-03-03T11:45:36Z")

</div>

Bin gerade dabei das Update von 5.6.4 auf 5.6.5 durchzuführen, aber beim Punkt Datenbank Migration bekomme ich folgende Fehlermeldung:

> Error  
> Received the following error message:  
> Could not apply migration (Migrations\_Migration1652). Error: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‚s\_articles\_attributes-viison\_country\_of\_origin‘ for key ‚table\_column\_unique‘

Jemand eine Idee zur Lösung?&nbsp;

---

<div class="post-metadata">

### Author: ![unikatgmbh](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/unikatgmbh/32/13771_2.png) [@unikatgmbh](https://forum.shopware.com/u/unikatgmbh)
#### Post date: [3. März 2020 um 14:15 UTC](https://forum.shopware.com/t/update-probleme-datenbank-migration-von-5-6-4-auf-5-6-5/65167/2 "2020-03-03T14:15:06Z")

</div>

Wir wollten gerade das Update von 5.6.4 auf 5.6.6 durchführen und bekamen eine ganz ähnliche Fehlermeldung:

> Could not apply migration (Migrations\_Migration1652). Error: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‚s\_articles\_attributes-neon\_unitarticle\_discount‘ for key ‚table\_column\_unique‘

---

<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: [3. März 2020 um 14:25 UTC](https://forum.shopware.com/t/update-probleme-datenbank-migration-von-5-6-4-auf-5-6-5/65167/3 "2020-03-03T14:25:58Z")

</div>

Ähnlicher Fehler ist mir heute beim Update auch passiert. Schaut mal in die Tabelle s\_attribute\_configuration ob dort bei “table\_name” mit “column\_name” doppelte Einträge drin stehen. Also der jeweilige Eintrag bei “table\_name” mit “column\_name” sollte nur einmal hier vorkommen. Falls nicht, den mit der kleinsten ID mal löschen. Dann Update wiederholen. Ggf. vorher ein Backup von der DB machen und/oder das dazugehörige Plugin re-installieren. Anpassung auf eigene Gefahr!

---

<div class="post-metadata">

### Author: ![Bosche](https://avatars.discourse-cdn.com/v4/letter/b/8dc957/32.png) [@Bosche](https://forum.shopware.com/u/Bosche)
#### Post date: [4. März 2020 um 07:19 UTC](https://forum.shopware.com/t/update-probleme-datenbank-migration-von-5-6-4-auf-5-6-5/65167/4 "2020-03-04T07:19:15Z")

</div>

Ich habe auch eine ähnliche Fehlermeldung erhalten:

```
Received the following error message:
Could not apply migration (Migrations_Migration1652). Error: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 's_articles_attributes-six_ShortDescription' for key 'table_column_unique'

```

Kann aber leider keine Spalte oder Tabelle mit dem Namen s\_articles\_attributes-six\_ShortDescription finden.

EDIT::

Habe nicht genau hingeschaut und später erst gesehen, dass s\_attribute\_configuration auf Seite 2 zu finden ist. Leider erhalte ich anschließend folgenden Fehler:

```
Error
Received an error message.
URL: unpack?offset=0&total=0
Message: Internal Server Error

Please try to fix this error and restart the update.

```

&nbsp;

---

<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: [4. März 2020 um 07:30 UTC](https://forum.shopware.com/t/update-probleme-datenbank-migration-von-5-6-4-auf-5-6-5/65167/5 "2020-03-04T07:30:13Z")

</div>

Schau mal bitte in die Tabelle =\> **s\_attribute\_configuration** und dort nach einem Eintrag “six\_ShortDescription” steht. Und genau dort müsste es einen dopelten Eintrag bei “table\_name” **in Verbindung** mit “column\_name” geben. Die Kombination in Spalten “table\_name” mit “column\_name” dürfen nur einmal vorkommen.

Vermutlich hat man bei der Migration1652 nicht bedacht, dass es in einigen Shop hier in der Tabelle s\_attribute\_configuration zu doppelten Einträgen kommen kann, wodurch diese Migration hier nicht stattfinden kann, und somit das Update abbricht.

&nbsp;
