fix repeatable migrations
This commit is contained in:
21
db/routines/R__009_fn_deye_tou_inactive_signature.sql
Normal file
21
db/routines/R__009_fn_deye_tou_inactive_signature.sql
Normal file
@@ -0,0 +1,21 @@
|
||||
create or replace function ems.fn_deye_tou_inactive_signature(
|
||||
p_hhmm_inactive int,
|
||||
p_min_soc_pct numeric,
|
||||
p_reserve_soc_pct numeric,
|
||||
p_tp_discharge_w int
|
||||
)
|
||||
returns text
|
||||
language sql
|
||||
immutable
|
||||
as $fn$
|
||||
select concat_ws(
|
||||
'|',
|
||||
p_hhmm_inactive::text,
|
||||
round(p_min_soc_pct, 2)::text,
|
||||
round(p_reserve_soc_pct, 2)::text,
|
||||
p_tp_discharge_w::text
|
||||
);
|
||||
$fn$;
|
||||
|
||||
comment on function ems.fn_deye_tou_inactive_signature(int, numeric, numeric, int) is
|
||||
'Podpis neaktivních TOU slotů (shoda s asset_inverter.deye_tou_inactive_signature).';
|
||||
Reference in New Issue
Block a user