# Nach umbennen von production-Ordner alle Themes verschwunden

**URL:** <https://forum.shopware.com/t/nach-umbennen-von-production-ordner-alle-themes-verschwunden/93151>\
**Category:** Shopware 5\
**Created:** [25. Februar 2022 um 17:51 UTC](https://forum.shopware.com/t/nach-umbennen-von-production-ordner-alle-themes-verschwunden/93151 "2022-02-25T17:51:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Andreas\_147](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@Andreas\_147](https://forum.shopware.com/u/Andreas_147)\
**Post date:** [3. April 2023 um 07:41 UTC](https://forum.shopware.com/t/nach-umbennen-von-production-ordner-alle-themes-verschwunden/93151/2 "2023-04-03T07:41:29Z")

</div>

Falls jemand noch dieses Problem hat oder ihr die Fehlermeldung „No mapping found for field ‚shop‘ on class ‚Shopware\Models\Attribute\Shop‘,“ bei einem Update erhalten:

Die Lösung findet ihr in diesem Thread: [Link Forum](https://forum.shopware.com/t/update-auf-version-5-5-8-mapping-fehler/59283/6) danke an @Frank_2812.

Kurform: Die Foreign-Keys für Ihre Shopversion herunterladen: [Link Foreign Keys](https://docs.shopware.com/de/shopware-5-de/tutorials-und-faq/foreign-keys-reparieren)

Dann die Datei öffnen und z.B. am Ende folgendes anfügen:

```auto
DROP TABLE IF EXISTS s_core_shops_attributes_new;
DROP TABLE IF EXISTS s_core_shops_attributes_backup;

-- Copy structure and data to new table, this does _not_ copy the foreign keys, that's exactly what we want
CREATE TABLE s_core_shops_attributes_new LIKE s_core_shops_attributes;
INSERT INTO s_core_shops_attributes_new SELECT * FROM s_core_shops_attributes;

RENAME TABLE s_core_shops_attributes TO s_core_shops_attributes_backup, s_core_shops_attributes_new TO s_core_shops_attributes;

-- Add missing foreign key
ALTER TABLE `s_core_shops_attributes` ADD FOREIGN KEY ( `shopID` ) REFERENCES `s_core_shops` (
        `id`
) ON DELETE CASCADE ON UPDATE NO ACTION ;

DROP TABLE s_core_shops_attributes_backup;

```

Das war auch mein Retter, denn so konnte ich endlich wieder Shopware-Updates installieren.

---

_[View the full topic](https://forum.shopware.com/t/nach-umbennen-von-production-ordner-alle-themes-verschwunden/93151)._
