From 74386859f34237b6e5c31cdefb1ac0c638fb6b44 Mon Sep 17 00:00:00 2001 From: Luke Holder Date: Wed, 20 Nov 2024 17:22:32 +0800 Subject: [PATCH] Fixed possible #3778 --- src/migrations/m240313_131445_tidy_shipping_methods.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/migrations/m240313_131445_tidy_shipping_methods.php b/src/migrations/m240313_131445_tidy_shipping_methods.php index a9a0c0d3bd..01746a7a83 100644 --- a/src/migrations/m240313_131445_tidy_shipping_methods.php +++ b/src/migrations/m240313_131445_tidy_shipping_methods.php @@ -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; }