From 58e868eac0b043d9e99e480c15698e1cb268e0c6 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Wed, 27 Nov 2024 10:54:58 +0100 Subject: [PATCH] fixed hoursEntries to be text --- .../20241127100000_warehouse_modify_4.php | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 db/migrations/20241127100000_warehouse_modify_4.php diff --git a/db/migrations/20241127100000_warehouse_modify_4.php b/db/migrations/20241127100000_warehouse_modify_4.php new file mode 100644 index 000000000..301194d33 --- /dev/null +++ b/db/migrations/20241127100000_warehouse_modify_4.php @@ -0,0 +1,27 @@ +getEnvironment() == "thetool") { + $WarehouseShippingNote = $this->table("WarehouseShippingNote", ["signed" => true]); + // change column hoursEntries to text without limit + $WarehouseShippingNote->changeColumn("hoursEntries", "text", ["null" => true]); + $WarehouseShippingNote->save(); + } + + if ($this->getEnvironment() == "addressdb") { + + } + } + + public function down(): void { + if ($this->getEnvironment() == "thetool") { + $WarehouseShippingNote = $this->table("WarehouseShippingNote"); + $WarehouseShippingNote->changeColumn("hoursEntries", "text", ["limit" => 255, "null" => true]); + $WarehouseShippingNote->save(); + } + } +}