Closed flytomek closed 2 months ago
@flytomek thx for creating the issue. I was following along the post in slack (recognizable with the :eye: ) - but appreciated anyways :+1:
Currently verifying the change and thinking about a solution that is not being confused with entities that do not need the version_id.
Keep you posted here :wave:
Closed - PR was opened -> https://github.com/shopware/docs/pull/1473
I was following the example in the documentation and durning execution of migration, I got the following error:
Failed to add the foreign key constraint. Missing unique key for constraint 'fk.swag_example_extension.product_id' in the referenced table 'product'
I took closer look at the
product
table and realized, that the primary key of this table is notid
, butid, version id
.So to make the documentation example working I had to do the following things: