new update

This commit is contained in:
Luca Haid
2025-04-24 13:41:12 +02:00
parent 4108eb99c9
commit c4b99b91f1

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