From de0eed9c1ad55a2d8bdfe99341cb031dd99fbb50 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Wed, 22 Jan 2025 09:27:00 +0100 Subject: [PATCH] added migration --- .../20250122090000_eshop_add_additional.php | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 db/migrations/20250122090000_eshop_add_additional.php diff --git a/db/migrations/20250122090000_eshop_add_additional.php b/db/migrations/20250122090000_eshop_add_additional.php new file mode 100644 index 000000000..3e705612a --- /dev/null +++ b/db/migrations/20250122090000_eshop_add_additional.php @@ -0,0 +1,24 @@ +getEnvironment() == "thetool") { + $table = $this->table("WarehouseEShopOrder"); + $table->addColumn("deliveryAddressAdditional", "string", ["limit" => 255, "null" => true]); + $table->save();; + } + } + + public function down(): void + { + if ($this->getEnvironment() == "thetool") { + $table = $this->table("WarehouseEShopOrder"); + $table->removeColumn("deliveryAddressAdditional"); + $table->save();; + } + } +}