From b406ad3b10cdb5ac0b870b6bcf3dcfb8f5eb88ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Gla=CC=88ser?= Date: Sun, 6 Sep 2026 08:57:05 +0200 Subject: [PATCH] Ensure forecast snapshot date exists --- db/migrations/0016_stock_lot_forecast_history.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/db/migrations/0016_stock_lot_forecast_history.sql b/db/migrations/0016_stock_lot_forecast_history.sql index 2cd7609..1fabef8 100644 --- a/db/migrations/0016_stock_lot_forecast_history.sql +++ b/db/migrations/0016_stock_lot_forecast_history.sql @@ -1,6 +1,7 @@ BEGIN; ALTER TABLE stock_lot + ADD COLUMN IF NOT EXISTS sellout_date DATE, ADD COLUMN IF NOT EXISTS sellout_forecast_status TEXT NOT NULL DEFAULT 'no_demand', ADD COLUMN IF NOT EXISTS sellout_forecast_confidence TEXT NOT NULL DEFAULT 'none', ADD COLUMN IF NOT EXISTS sellout_forecast_daily_demand NUMERIC(14, 6) NOT NULL DEFAULT 0,