uuids instead of int ids fore xternal product catalogs, test fixes, many to many working now

This commit is contained in:
2025-03-31 01:30:09 -07:00
parent 4c65d23e2b
commit 025017537f
11 changed files with 43 additions and 31 deletions

View File

@@ -14,7 +14,11 @@ class CreateExternalProductCatalogs extends AbstractMigration
*/
public function change(): void
{
$table = $this->table('external_product_catalogs');
$table = $this->table('external_product_catalogs', ['id' => false, 'primary_key' => ['id']]);
$table->addColumn('id', 'uuid', [
'default' => null,
'null' => false,
]);
$table->addColumn('product_catalog_id', 'uuid', [
'default' => null,
'null' => false,

View File

@@ -15,9 +15,8 @@ class CreateExternalProductCatalogsProductCatalogs extends BaseMigration
public function change(): void
{
$table = $this->table('external_product_catalogs_product_catalogs');
$table->addColumn('external_product_catalog_id', 'string', [
$table->addColumn('external_product_catalog_id', 'uuid', [
'default' => null,
'limit' => 255,
'null' => false,
]);
$table->addColumn('product_catalog_id', 'uuid', [