Skip to content

Commit 5fbb50c

Browse files
committed
commit
1 parent 8a93ec0 commit 5fbb50c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/base/commands/Generate/Product.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ public function addDBTableDefinition(Table \$table): Table
437437
->addForeignKey('fk_".$migration_table."_website_id', ['website_id'], 'website', ['id'])
438438
->addForeignKey('fk_".$migration_table."_owner_id', ['user_id'], 'user', ['id'])
439439
->addForeignKey('fk_".$migration_table."_language_locale', ['locale'], 'language', ['locale'])
440+
->addForeignKey('fk_".$migration_table."_tax_class_id', ['tax_class_id'], 'tax_class', ['id'])
440441
->setAutoIncrementColumn('id');
441442
442443
return \$table;

app/site/migrations/CreateBookTableMigration.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public function addDBTableDefinition(Table $table): Table
3838
->addForeignKey('fk_book_website_id', ['website_id'], 'website', ['id'])
3939
->addForeignKey('fk_book_owner_id', ['user_id'], 'user', ['id'])
4040
->addForeignKey('fk_book_language_locale', ['locale'], 'language', ['locale'])
41+
->addForeignKey('fk_book_tax_class_id', ['tax_class_id'], 'tax_class', ['id'])
4142
->setAutoIncrementColumn('id');
4243

4344
return $table;

0 commit comments

Comments
 (0)