Konvence: comment on function / drop function VŽDY bez parametrů; názvy fn unikátní (žádné overloady)
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user