Skip to content

feat(database): add platform-agnostic schema migration system#3485

Merged
chrox merged 1 commit intoreadest:mainfrom
chrox:dev
Mar 6, 2026
Merged

feat(database): add platform-agnostic schema migration system#3485
chrox merged 1 commit intoreadest:mainfrom
chrox:dev

Conversation

@chrox
Copy link
Copy Markdown
Collaborator

@chrox chrox commented Mar 6, 2026

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.

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.
@chrox chrox merged commit 54bc151 into readest:main Mar 6, 2026
3 checks passed
@chrox chrox deleted the dev branch March 6, 2026 12:07
@Hermotimus
Copy link
Copy Markdown
Contributor

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 apps/readest-app/src-tauri/plugins/tauri-plugin-turso/src

Attached is a complete log of the build on the latest commit (54bc151).

Could you, please, help me resolve this issue?

20260306-build-log.html

@chrox
Copy link
Copy Markdown
Collaborator Author

chrox commented Mar 6, 2026

We will fix it shortly. Thanks.

@chrox
Copy link
Copy Markdown
Collaborator Author

chrox commented Mar 6, 2026

Please check out the latest main branch, it should fix the android build. You also need to update the tauri-plugin-turso submodule.

@Hermotimus
Copy link
Copy Markdown
Contributor

Please check out the latest main branch, it should fix the android build. You also need to update the tauri-plugin-turso submodule.

Great fix! Thank you.

Sidenote: The binary takes considerably longer to build…

@chrox
Copy link
Copy Markdown
Collaborator Author

chrox commented Mar 6, 2026

Partly because we bumped tauri version so it invalidated some rust caches.

chandravadans pushed a commit to chandravadans/readest that referenced this pull request Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants