From e4c70820aae79e323de8ca36ef89a1549bca8808 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Wed, 17 Dec 2025 18:33:22 +0100 Subject: [PATCH] missing migration --- ...rehouse_stocktake_item_add_overwritten.php | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 db/migrations/20251217120000_warehouse_stocktake_item_add_overwritten.php diff --git a/db/migrations/20251217120000_warehouse_stocktake_item_add_overwritten.php b/db/migrations/20251217120000_warehouse_stocktake_item_add_overwritten.php new file mode 100644 index 000000000..9d99da9a4 --- /dev/null +++ b/db/migrations/20251217120000_warehouse_stocktake_item_add_overwritten.php @@ -0,0 +1,25 @@ +getEnvironment() == "thetool") { + $table = $this->table('WarehouseStocktakeItem'); + $table->addColumn('overwrittenById', 'integer', ['null' => true, 'signed' => true, 'after' => 'scannedBy']) + ->update(); + } + } + + public function down(): void + { + if ($this->getEnvironment() == "thetool") { + $table = $this->table('WarehouseStocktakeItem'); + $table->removeColumn('overwrittenById') + ->update(); + } + } +}