diff --git a/db/routines/R__063_fn_load_planning_slots_full.sql b/db/routines/R__063_fn_load_planning_slots_full.sql index aee9aa4..bea8fb7 100644 --- a/db/routines/R__063_fn_load_planning_slots_full.sql +++ b/db/routines/R__063_fn_load_planning_slots_full.sql @@ -1,4 +1,7 @@ -- sloty pro LP: ceny, forecast, baseline, EV připojení + masky allow_charge / allow_discharge_export +-- DROP: změna RETURNS TABLE (nové sloupce) — CREATE OR REPLACE na rozdílný row type v PG neprojde. + +drop function if exists ems.fn_load_planning_slots_full; create or replace function ems.fn_load_planning_slots_full( p_site_id int, @@ -498,7 +501,7 @@ begin end; $fn$; -comment on function ems.fn_load_planning_slots_full(int, timestamptz, timestamptz, numeric) is +comment on function ems.fn_load_planning_slots_full is '15min sloty s cenami, forecastem, baseline a maskami proti mikro-cyklu (charge/discharge-export). ' 'Masky charge/discharge-export se berou zvlášť pro 00–12 a 12–24 Europe/Prague (polovina budgetu na segment). ' 'Strop SoC pro výpočet energie k dobití: coalesce(planner_max_soc_percent, max_soc_percent). '