Carry the custom-metric entry tombstone through backup and restore

The entries gained a soft-delete this release; both backup ends follow in
the same one. A portable export omits tombstoned readings so a restore
cannot resurrect them; a disaster-recovery payload carries the tombstone
and the restore writes it back, so the account returns exactly as it
stood — undo affordance included.
This commit is contained in:
Marc-André Bombeck committed 2026-08-14 09:58:11 +02:00
1 parent bcabd43ca7
commit 4941cd075b
2 files changed
+14 -1

No files matched your search

+3
View File
@@ -611,6 +611,9 @@ const customMetricEntryBackupSchema = z
measuredAt: isoDateTime,
note: z.string().nullable().default(null),
createdAt: isoDateTime.optional(),
/// v1.37.20 (A3-11) — the entry tombstone rides DR payloads so a restore
/// brings the account back exactly as it stood, undo affordance included.
deletedAt: isoDateTime.nullable().optional(),
})
.passthrough();