uuids instead of int ids fore xternal product catalogs, test fixes, many to many working now
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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', [
|
||||
|
||||
Reference in New Issue
Block a user