Skip to content

Commit

Permalink
Fixed possible #3778
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeholder committed Nov 20, 2024
1 parent ba34da1 commit 7438685
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/migrations/m240313_131445_tidy_shipping_methods.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ public function safeUp(): bool

$this->dropForeignKeyIfExists(Table::SHIPPINGMETHODS, ['storeId']);

$this->addForeignKey(null, Table::SHIPPINGMETHODS, ['storeId'], Table::STORES, ['id'], 'CASCADE');

$this->alterColumn(Table::SHIPPINGMETHODS, 'storeId', $this->integer()->notNull());

$this->addForeignKey(null, Table::SHIPPINGMETHODS, ['storeId'], Table::STORES, ['id'], 'CASCADE');

return true;
}

Expand Down

0 comments on commit 7438685

Please sign in to comment.