# Datenbanktabelle product default

**URL:** <https://forum.shopware.com/t/datenbanktabelle-product-default/103770>\
**Category:** Shopware 6 (German)\
**Created:** [20. April 2024 um 12:25 UTC](https://forum.shopware.com/t/datenbanktabelle-product-default/103770 "2024-04-20T12:25:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [20. April 2024 um 12:25 UTC](https://forum.shopware.com/t/datenbanktabelle-product-default/103770/1 "2024-04-20T12:25:08Z")

</div>

Ich habe hier gesehen, dass in der Struktur-Tabelle von product der Wert von cms\_page\_version\_id nicht defaul NULL ist. Soll das so?

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/1/d/1d371ace0e45ba323f3d23b639905121ef86afe6.png)

---

<div class="post-metadata">

**Author:** ![drakon](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/drakon/32/7724_2.png) [@drakon](https://forum.shopware.com/u/drakon)\
**Post date:** [20. April 2024 um 13:35 UTC](https://forum.shopware.com/t/datenbanktabelle-product-default/103770/2 "2024-04-20T13:35:37Z")

</div>

Hi,  
sieht bei mir auch so aus. Ich hab die Tabelle noch nie manuell angepackt und habe mit SW 6.5.x gestartet. Insofern müsste das Standard sein.

---

<div class="post-metadata">

**Author:** ![FP10](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@FP10](https://forum.shopware.com/u/FP10)\
**Post date:** [21. April 2024 um 21:54 UTC](https://forum.shopware.com/t/datenbanktabelle-product-default/103770/3 "2024-04-21T21:54:44Z")

</div>

@brettvormkopp Das ist mir auch aufgefallen. Ich scheitere derzeit ein DB-Backup zu importieren und bin bei der Analyse darauf gestoßen. Ob es daran liegt?

```auto
--
-- Tabellenstruktur für Tabelle `product`
--

CREATE TABLE `product` (
  `id` binary(16) NOT NULL,
  `version_id` binary(16) NOT NULL,
  `auto_increment` int(11) NOT NULL,
  `product_number` varchar(64) DEFAULT NULL,
  `active` tinyint(3) UNSIGNED DEFAULT NULL,
  `parent_id` binary(16) DEFAULT NULL,
  `parent_version_id` binary(16) DEFAULT NULL,
  `tax_id` binary(16) DEFAULT NULL,
  `product_manufacturer_id` binary(16) DEFAULT NULL,
  `product_manufacturer_version_id` binary(16) DEFAULT NULL,
  `delivery_time_id` binary(16) DEFAULT NULL,
  `deliveryTime` binary(16) DEFAULT NULL,
  `product_media_id` binary(16) DEFAULT NULL,
  `product_media_version_id` binary(16) DEFAULT NULL,
  `cms_page_id` binary(16) DEFAULT NULL,
  `cms_page_version_id` binary(16) NOT NULL DEFAULT '???jK¾K??u,4%',
  `unit_id` binary(16) DEFAULT NULL,
  `product_feature_set_id` binary(16) DEFAULT NULL,
  `category_t[...]

#1005 - Kann Tabelle `test_db3`.`product` nicht erzeugen (Fehler: 150 "Foreign key constraint is incorrectly formed")

```

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [22. April 2024 um 16:20 UTC](https://forum.shopware.com/t/datenbanktabelle-product-default/103770/4 "2024-04-22T16:20:33Z")

</div>

WIe sieht denn dein INSERT aus?
