CakeProducts/config/Migrations/20250906074703_CreateProduc...

38 lines
1.0 KiB
PHP

<?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();
}
}