start of variant values

This commit is contained in:
2025-09-10 22:06:12 -07:00
parent f3a6384c55
commit 71c038a9a0
7 changed files with 290 additions and 25 deletions

View File

@@ -0,0 +1,37 @@
<?php
declare(strict_types=1);
use Migrations\BaseMigration;
class CreateProductSkuVariantValues extends BaseMigration
{
/**
* Change Method.
*
* More information on this method is available here:
* https://book.cakephp.org/migrations/4/en/migrations.html#the-change-method
*
* @return void
*/
public function change(): void
{
$table = $this->table('product_sku_variant_values', ['id' => false, 'primary_key' => ['id']]);
$table->addColumn('id', 'uuid', [
'default' => null,
'null' => false,
]);
$table->addColumn('product_sku_id', 'uuid', [
'default' => null,
'null' => false,
]);
$table->addColumn('product_category_variant_id', 'uuid', [
'default' => null,
'null' => false,
]);
$table->addColumn('product_category_variant_option_id', 'uuid', [
'default' => null,
'null' => false,
]);
$table->create();
}
}