mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 04:32:42 +00:00
v1.4.43 W14 introduced consecutive_failures_by_kind as the bucketed per-FailureKind counter and kept the single-column consecutive_failures integer for one release as a fallback for v1.4.43 readers mid-deploy. v1.4.45 W10 closed the back-fill write gap so the bucket and the legacy column post-write at the same N+1 value, and the >24h release gap since v1.4.43 means every active integration in production has written at least one failure or success, so every row's consecutive_failures_by_kind is populated. The legacy integer is now redundant: the alert ladder reads Math.max over the bucket values and no other call site consults the column. Migration 0076 drops it with an IF EXISTS guard. The reversibility recipe is documented inline so a rollback can rebuild the column from GREATEST(transient, reauth_required, persistent) over the existing JSON payload.