diff --git a/store/sqlstore/migration/24.10/24.08-24.10.sql b/store/sqlstore/migration/24.10/24.08-24.10.sql index f14bd33..fc9479c 100644 --- a/store/sqlstore/migration/24.10/24.08-24.10.sql +++ b/store/sqlstore/migration/24.10/24.08-24.10.sql @@ -931,8 +931,10 @@ SELECT t.id, t.admin_ids, t.invite_chat_timeout, t.task_accept_timeout, - null::jsonb as forecast_calculation -FROM call_center.cc_team t; + call_center.cc_get_lookup((fc.id)::bigint, (fc.name)::character varying) AS forecast_calculation +FROM (call_center.cc_team t + LEFT JOIN wfm.forecast_calculation fc ON ((fc.id = t.forecast_calculation_id))); +; --