mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-19 08:12:52 +00:00
The import recognised a deleted result by the identity on its own tombstone, so anything that removed the row brought the result back with the next Apple Health export or resend: deleting the whole marker, which hard-deletes its readings, the nightly tombstone purge, and a portable backup, which leaves deleted readings out. The identities now move into an import ledger (LabResultImportKey, migration 0501) in the same transaction as the marker delete and the purge, and the import checks it beside the stored rows. The backup carries the ledger, a portable file also the identities of deleted readings still waiting as tombstones; the restore writes it back without the identities a restored reading holds. The data wipe clears it, account deletion cascades.