Skip to content

Commit

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

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

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

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

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

return true;
}
Expand Down

0 comments on commit ba34da1

Please sign in to comment.