HomePhabricator
Diffusion Comm 85789c85773e

[lib] Fix SQLite migrations

Description

[lib] Fix SQLite migrations

Summary:
The migrations are broken because we weren't using the right shape of the specification. This diff fixes it and introduces necessary type checks.

https://linear.app/comm/issue/ENG-9467/redux-migrations-are-broken

Test Plan: Tested this by creating a new migration on the web where a new draft is created. Run the app, and reopened it. Checked if the SET_CLIENT_DB_STORE action contains the draft.

Reviewers: kamil, ashoat, atul

Reviewed By: ashoat

Differential Revision: https://phab.comm.dev/D13571

Details

Provenance
tomekAuthored on Oct 2 2024, 5:04 AM
Reviewer
ashoat
Differential Revision
D13571: [lib] Fix SQLite migrations
Parents
rCOMMfb674c2f263b: [lib] remove checking for message IDs collision
Branches
Unknown
Tags
Unknown