Skip to content

Commit

Permalink
Fix more sqlserver comparison files
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 23, 2024
1 parent 5e5c872 commit 25d54da
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,12 @@ public function up(): void
'product_id',
])
->setReferencedTable('products')
->setReferencedColumns('id')
->setOnDelete('NO_ACTION')
->setOnUpdate('NO_ACTION')
->setReferencedColumns([
'category_id',
'id',
])
->setOnDelete('CASCADE')
->setOnUpdate('CASCADE')
->setName('orders_product_fk')
)
->update();
Expand All @@ -373,8 +376,8 @@ public function up(): void
$this->foreignKey('category_id')
->setReferencedTable('categories')
->setReferencedColumns('id')
->setOnDelete('NO_ACTION')
->setOnUpdate('NO_ACTION')
->setOnDelete('CASCADE')
->setOnUpdate('CASCADE')
->setName('products_category_fk')
)
->update();
Expand Down

0 comments on commit 25d54da

Please sign in to comment.