pub fn migrate_legacy_jsonl_in_place(path: &Path) -> Result<()>
Detect-and-migrate. No-op when the file is already at schema_version 2.