mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
A current disaster-recovery backup writes aggregationProvenance for every measurement, null included. The restore treated null like a missing field and marked every Apple Health stats: row without a provenance as LEGACY_UNKNOWN, which is meant only for backups too old to carry the field. The nightly daily-mean fold writes exactly such rows, so on a large Apple Health account a restore changed tens of thousands of readings it was supposed to put back as they were (#1031). Only an absent field now takes the legacy path.