-- export_mode / export_limit_w z LP — potřeba pro control exporter (reg 142/143) alter table ems.planning_interval add column if not exists export_mode text, add column if not exists export_limit_w int; comment on column ems.planning_interval.export_mode is 'Záměr exportu z solveru: NONE / PV_SURPLUS / BATTERY_SELL.'; comment on column ems.planning_interval.export_limit_w is 'Tvrdý limit exportu do sítě (W) v slotu; 0 = bez exportu.';