fix BA81 nevybijeni do site
Some checks failed
CI and deploy / migration-check (push) Failing after 9s
CI and deploy / deploy (push) Has been skipped

This commit is contained in:
Dusan Vojacek
2026-04-27 19:24:37 +02:00
parent 69c979b967
commit c52946a4ce
4 changed files with 18 additions and 12 deletions

View File

@@ -0,0 +1,12 @@
-- planner_terminal_soc_value_factor: LP terminal SoC shadow price (planning_engine).
-- V062 přidal sloupec NOT NULL default 0.9; tato migrace je idempotentní upevnění pro starší / ručně upravené DB.
update ems.asset_battery
set planner_terminal_soc_value_factor = 0.9
where planner_terminal_soc_value_factor is null;
alter table ems.asset_battery
alter column planner_terminal_soc_value_factor set default 0.9;
alter table ems.asset_battery
alter column planner_terminal_soc_value_factor set not null;