diff --git a/config/Migrations/20241114090547_CreateProducts.php b/config/Migrations/20241114090547_CreateProducts.php index f7c6833..b680fb2 100644 --- a/config/Migrations/20241114090547_CreateProducts.php +++ b/config/Migrations/20241114090547_CreateProducts.php @@ -35,13 +35,13 @@ class CreateProducts extends AbstractMigration ]); $table->addIndex('product_category_id'); $table->addIndex('product_type_id'); - $table->addIndex([ - 'product_category_id', - 'name', - ], [ - 'name' => 'BY_NAME_AND_CATEGORY_ID', - 'unique' => true, - ]); +// $table->addIndex([ +// 'product_category_id', +// 'name', +// ], [ +// 'name' => 'BY_NAME_AND_CATEGORY_ID', +// 'unique' => true, +// ]); $table->create(); } } diff --git a/src/Model/Entity/Product.php b/src/Model/Entity/Product.php index ec283e7..b9a5b8d 100644 --- a/src/Model/Entity/Product.php +++ b/src/Model/Entity/Product.php @@ -41,6 +41,6 @@ class Product extends Entity // entities 'product_category' => false, 'product_attributes' => true, - 'product_category_variants' => false, + 'product_category_variants' => true, ]; }