issue: ENG-6104
See this discussion for all details, but here are the most important things:
- migrateStorageToSQLite can be called on current and later version of the app, because the db might not be available sometimes and then we default to using local storage.
- a transform changing is also a problem in the usual case - we persist state with one transform and then restore it with a changed one - this will cause issues. So if we ever change the transforms, they should be responsible themselves for making sure that the old persisted state isn't broken (this is in reference to the comment I deleted).
- This diff doesn't change the behaviour when oldStorage?._persist?.version === 4