From 915f6eb59eff8ed0d07515b10b97ed2e6672206e Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 5 Aug 2026 15:30:05 +0100 Subject: [PATCH] Backfill to order items --- .../2026_08_03_142000_backfill_orders_from_inventory_tables.php | 1 + 1 file changed, 1 insertion(+) diff --git a/database/migrations/2026_08_03_142000_backfill_orders_from_inventory_tables.php b/database/migrations/2026_08_03_142000_backfill_orders_from_inventory_tables.php index 9d2a46759a..a5a6346dec 100644 --- a/database/migrations/2026_08_03_142000_backfill_orders_from_inventory_tables.php +++ b/database/migrations/2026_08_03_142000_backfill_orders_from_inventory_tables.php @@ -118,6 +118,7 @@ return new class extends Migration 'item_id' => $row->id, 'qty' => max(1, (int) ($qtyMap[$row->id] ?? 1)), 'price' => $row->purchase_cost, + 'created_by' => $row->created_by, 'created_at' => $row->created_at ?? now(), 'updated_at' => $row->created_at ?? now(), ]);