We're storing the version in synced metadata table. We don't want to fetch all the data, which means that we have to introduce a dedicated function for this.
https://linear.app/comm/issue/ENG-7008/detect-that-the-compaction-is-from-a-newer-version-than-the-app-and
Depends on D119472