Files
ems/db/migration/V056__planning_interval_deye_gen_cutoff_enabled.sql
Dusan Vojacek b8515f30df
Some checks failed
CI and deploy / migration-check (push) Failing after 9s
CI and deploy / deploy (push) Has been skipped
implmemtace cuttoff genportu
2026-04-20 10:41:10 +02:00

11 lines
583 B
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- Explicitní flag pro řízení odpojení GEN portu (mikroinvertory / AC coupling) v daném slotu.
-- Použito hlavně u BA81: při záporné výkupní ceně a očekávaném přebytku nechceme exportovat, takže solver může zvolit cut-off.
alter table ems.planning_interval
add column if not exists deye_gen_cutoff_enabled boolean;
comment on column ems.planning_interval.deye_gen_cutoff_enabled is
'True = v daném slotu odpojit GEN port (MI export cutoff) přes Deye reg 179 bits01.
NULL = lokalita / instalace GEN cut-off nepoužívá nebo flag není relevantní.';