Merge branch 'Warehouse/improve2' into 'master'

new update

See merge request fronk/thetool!1253
This commit is contained in:
Luca Haid
2025-04-24 11:41:26 +00:00

View File

@@ -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 ---