vlcn-io / cr-sqlite

Convergent, Replicated SQLite. Multi-writer and CRDT support for SQLite
https://vlcn.io
MIT License
2.61k stars 69 forks source link

Add optional column for `schema_version` in `crsql_changes` #378

Open tantaman opened 9 months ago

tantaman commented 9 months ago

This will allow us to ensure, at the library level, that incompatible schemas are not synced.

Azarattum commented 9 months ago

Is this supposed to be an integer that is incremented with every migration or some kind of hash from the actual table structure? I think the later would be more robust, since it would prevent an accidental sync between completely different DBs.