mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
Rows written before this change keep the reading mean: the boot backfill and the freshness check fill only missing days, so nothing rewrites them. Migration 0373 recomputes the mean of every stored PULSE row from the readings, DAY as the mean of its hours' means and WEEK / MONTH / YEAR as the mean of their days, and leaves count, min, max and the sums alone. The writer stores the coarse rows the same way, so a refold and the migration agree.