Konvence: comment on function / drop function VŽDY bez parametrů; názvy fn unikátní (žádné overloady)
All checks were successful
CI and deploy / migration-check (push) Successful in 41s
CI and deploy / deploy (push) Successful in 1m4s

Od uživatele po 42883 incidentu (R__018 comment na staré signatuře shodil
2 deploye): odkaz přes signaturu se rozbije při každé změně parametrů.
R__018 převeden na bez-parametrovou formu, pravidlo v CLAUDE.md Konvencích.
Zbylých 51 parametrizovaných comment on / 6 dropů v repu funguje (míří na
aktuální signatury) — normalizovat při dotyku.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dusan Vojacek
2026-06-12 14:57:05 +02:00
parent 9213d3544b
commit a208cc627d
2 changed files with 3 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
-- Cache delta profilu PV (těžká agregace forecast_accuracy) — refresh po fn_fill_forecast_accuracy.
-- Prefix R__018: musí běžet před R__022 (volá fn_refresh_site_pv_delta_profile_cache).
drop function if exists ems.fn_refresh_site_pv_delta_profile_cache(int);
drop function if exists ems.fn_refresh_site_pv_delta_profile_cache;
create or replace function ems.fn_refresh_site_pv_delta_profile_cache(
p_site_id int,
@@ -54,7 +54,7 @@ begin
end;
$fn$;
comment on function ems.fn_refresh_site_pv_delta_profile_cache(int, boolean) is
comment on function ems.fn_refresh_site_pv_delta_profile_cache is
'Přepočte a uloží delta_profile_cache pro site (volá fn_pv_forecast_delta_profile).';
create or replace function ems.fn_pv_forecast_delta_profile_cached(