mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
Earlier rewrites of conversation rows stamped updated_at with the run time, so the Coach panel listed untouched conversations under Today. Migration 0375 moves updated_at back to the newest message's created_at where it is more than a minute later. A rename or attachment shortly after the last turn keeps its stamp, conversations without messages are left alone, and a second run changes nothing. One set-based statement; the per-conversation maximum reads from the (conversation_id, created_at) index.