Files
ems/db/migration/V093__tesla_lfp_capacity.sql
Dusan Vojacek 5ae6b609cc
All checks were successful
CI and deploy / migration-check (push) Successful in 17s
CI and deploy / deploy (push) Has been skipped
FIX V093: asset_vehicle nemá sloupec notes — migrace failovala a blokovala
všechny deploye od ~13:40 (R__082 OTE fix, V094, bot fallback ve frontě).
V093 nebyla aplikována (transakční rollback) — úprava failed migrace je
legitimní (immutability platí pro APLIKOVANÉ); na serveru nutný jednorázový
'flyway repair' (smaže failed záznam z historie).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-12 13:48:12 +02:00

11 lines
517 B
SQL
Raw 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.
-- Tesla Model Y 2025 Standard RWD (LFP): kapacita ~62.5 kWh (v seedu bylo 75 =
-- hodnota LR varianty) a default cíl 100 % — LFP chemie pravidelné nabití na
-- 100 % vyžaduje (balancování), žádná degradační penalizace jako u NMC.
-- Kapacita vstupuje do energy_needed (target soc) × kWh a do EV usage stats.
update ems.asset_vehicle
set battery_capacity_kwh = 62.5,
default_target_soc_pct = 100
where code = 'tesla-my'
and site_id = (select id from ems.site where code = 'home-01');