Ensure forecast snapshot date exists

This commit is contained in:
gitea_admin committed 2026-09-06 08:57:05 +02:00
1 parent cc5661146c
commit b406ad3b10
1 file changed
+1
@@ -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,