remove variant type id (enum) from variants table, use internal id for category field on variants form

This commit is contained in:
2025-06-30 21:25:47 -07:00
parent 5fb215c7fd
commit c9d34f7115
8 changed files with 10 additions and 52 deletions

View File

@@ -152,7 +152,6 @@ class ProductCategoryVariantsControllerTest extends BaseControllerTest
$data = [
'name' => 'Size',
'product_category_id' => 'db4b4273-eddc-46d4-93c8-45cf7c6e058e',
'variant_type_id' => 1,
'enabled' => true,
];
$this->post($url, $data);
@@ -186,7 +185,6 @@ class ProductCategoryVariantsControllerTest extends BaseControllerTest
$data = [
'name' => '',
'product_category_id' => 'db4b4273-eddc-46d4-93c8-45cf7c6e058e',
'variant_type_id' => 1,
'enabled' => true,
];
$this->post($url, $data);
@@ -246,7 +244,6 @@ class ProductCategoryVariantsControllerTest extends BaseControllerTest
// test new data here
'name' => 'updated name',
'product_category_id' => 'db4b4273-eddc-46d4-93c8-45cf7c6e058e',
'variant_type_id' => 1,
'enabled' => true,
];
$this->put($url, $data);
@@ -282,7 +279,6 @@ class ProductCategoryVariantsControllerTest extends BaseControllerTest
$data = [
'name' => '',
'product_category_id' => 'db4b4273-eddc-46d4-93c8-45cf7c6e058e',
'variant_type_id' => 1,
'enabled' => true,
];
$this->put($url, $data);