This commit is contained in:
Dusan Vojacek
2026-05-04 19:10:15 +02:00
parent 335c413232
commit ba53fe5bfc

View File

@@ -1,4 +1,7 @@
-- sloty pro LP: ceny, forecast, baseline, EV připojení + masky allow_charge / allow_discharge_export -- 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( create or replace function ems.fn_load_planning_slots_full(
p_site_id int, p_site_id int,
@@ -498,7 +501,7 @@ begin
end; end;
$fn$; $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). ' '15min sloty s cenami, forecastem, baseline a maskami proti mikro-cyklu (charge/discharge-export). '
'Masky charge/discharge-export se berou zvlášť pro 0012 a 1224 Europe/Prague (polovina budgetu na segment). ' 'Masky charge/discharge-export se berou zvlášť pro 0012 a 1224 Europe/Prague (polovina budgetu na segment). '
'Strop SoC pro výpočet energie k dobití: coalesce(planner_max_soc_percent, max_soc_percent). ' 'Strop SoC pro výpočet energie k dobití: coalesce(planner_max_soc_percent, max_soc_percent). '