refactor-control-monolith #5

Merged
vojacekd merged 2 commits from refactor-control-monolith into main 2026-05-04 19:15:21 +02:00

View File

@@ -1,4 +1,10 @@
-- 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.
-- Musí být plná signatura (pg_proc ukládá int jako integer); DROP bez () funkci se směrem nemaže.
drop function if exists ems.fn_load_planning_slots_full(
integer, timestamp with time zone, timestamp with time zone, numeric
);
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 +504,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). '