f5f189e0a4
When a medication's start date or interval changes, the generated dose IDs shift (dateOnlyMs values change). Previously, doses marked as taken under the old schedule were orphaned — they no longer matched the new schedule's dose IDs, causing them to appear as missed. Now the PUT /medications/:id endpoint: 1. Parses old intakes from the existing medication row 2. Detects which intake indices had schedule changes 3. Maps old dateOnlyMs values to the nearest new dateOnlyMs 4. Updates dose_tracking entries with the migrated IDs 5. Preserves person suffixes (e.g. -Alice) during migration Also fixes the start-date cleanup to use date-only comparison, preventing doses on the start date from being incorrectly deleted when the start time is after midnight. Adds 4 integration tests covering weekly day shift, person suffix preservation, time-only changes, and interval changes.