feat(database): add platform-agnostic schema migration system#3485
feat(database): add platform-agnostic schema migration system#3485chrox merged 1 commit intoreadest:mainfrom
Conversation
Add a unified migration runner that works across all three database backends (native/node/wasm) via the DatabaseService interface. Uses PRAGMA user_version as an O(1) fast-path to skip checks on already- current databases, making it safe to call on every open even with hundreds of db files. Schema types allow different migration sets for different database kinds. Also adds test:all and test:pr:tauri scripts with automated Tauri app lifecycle management, and silences noisy tracing/tantivy logs.
|
Since adding the “turso” brick to the project (commit 5273ef7), I have been unable to perform any builds for Android. There is a systematic Rust compiler error on two files in Attached is a complete log of the build on the latest commit (54bc151). Could you, please, help me resolve this issue? |
|
We will fix it shortly. Thanks. |
|
Please check out the latest main branch, it should fix the android build. You also need to update the |
Great fix! Thank you. Sidenote: The binary takes considerably longer to build… |
|
Partly because we bumped tauri version so it invalidated some rust caches. |
Add a unified migration runner that works across all three database backends (native/node/wasm) via the DatabaseService interface. Uses PRAGMA user_version as an O(1) fast-path to skip checks on already- current databases, making it safe to call on every open even with hundreds of db files. Schema types allow different migration sets for different database kinds.
Also adds test:all and test:pr:tauri scripts with automated Tauri app lifecycle management, and silences noisy tracing/tantivy logs.