From c4b99b91f1bc25b8bf09efa73c10eed507a31970 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Thu, 24 Apr 2025 13:41:12 +0200 Subject: [PATCH] new update --- .../20250424100000_warehouse_modify_20.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/db/migrations/20250424100000_warehouse_modify_20.php b/db/migrations/20250424100000_warehouse_modify_20.php index cdd16325c..6f08e7640 100644 --- a/db/migrations/20250424100000_warehouse_modify_20.php +++ b/db/migrations/20250424100000_warehouse_modify_20.php @@ -26,6 +26,19 @@ final class WarehouseModify20 extends AbstractMigration { ->addColumn("createBy", "integer", ["default" => 1]) ->create(); // Use create() instead of save() for new tables } + + $WarehouseCategoryTable = $this->table("WarehouseCategory", ['id' => 'id', 'signed' => false]); + if (!$WarehouseCategoryTable->exists()) { + $WarehouseCategoryTable + ->addColumn("name", "string", ["limit" => 255]) + ->addColumn("description", "text") + ->addColumn("create", "integer", ["default" => 1728541890]) + ->addColumn("create_by", "integer", ["default" => 1]) + ->addColumn("edit", "integer", ["null" => true, 'default' => null]) + ->addColumn("edit_by", "integer", ["null" => true, 'default' => null]) + ->create(); // Use create() instead of save() for new tables + } + // --- End: Original WarehouseShippingNoteTextElement logic ---