mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-13 22:32:04 +00:00
An intake can carry the dose that was actually taken — editable in the quick-add and log dialogs, shown as a quiet deviation line in the history. The measurements and mood lists refresh by pull on touch, the insight sub-pages gain the same customize entry as the overview, and an answered coach follow-up offers to adopt the answer into the matching self-context field.
11 lines
621 B
SQL
11 lines
621 B
SQL
-- v1.16.4 — per-intake dose override.
|
|
--
|
|
-- A user who takes half a tablet (or a doubled dose on a titration day)
|
|
-- could only record the take as-is; the ledger then implied the scheduled
|
|
-- dose was consumed. `dose_taken` records the free-text dose actually
|
|
-- consumed for THIS event when it deviates from (or simply documents) the
|
|
-- medication / schedule dose. NULL = no override recorded — every legacy
|
|
-- row and every take logged without touching the dose field stays NULL,
|
|
-- and read paths fall back to the medication's configured dose.
|
|
ALTER TABLE "medication_intake_events" ADD COLUMN "dose_taken" TEXT;
|