[lib] Update convertThreadStoreThreadInfosToNewIDSchema migration to ensure rawThreadInfos are NOT minimally encoded
Summary:
convertThreadStoreThreadInfosToNewIDSchema calls the utility function convertRawThreadInfoToNewIDSchema where both the input and output is any.
convertThreadStoreThreadInfosToNewIDSchema is called from createUpdateDBOpsForThreadStoreThreadInfos which expects a migrationFunc: RawThreadInfos => RawThreadInfos.
Rather than updating convertThreadStoreThreadInfosToNewIDSchema and all of those re-usable migration utils to support this legacy migration, I typed convertThreadStoreThreadInfosToNewIDSchema as accepting RawThreadInfos and have an invariant that enforces that we'll never actually pass a minimallyEncodedRawThreadInfo through this function.
[skip-ci]
Depends on D10281
Test Plan: Flow/CI/etc. I think in an ideal world we'd have unit tests for migrations to ensure that changes to the utility functions we consume in them don't lead to older migrations changing, but for now I just thought through it and read carefeully.
Reviewers: ashoat, ginsu, tomek, rohan
Reviewed By: ashoat
Subscribers: ashoat, tomek, michal
Differential Revision: https://phab.comm.dev/D10283