feat: 书籍回收站——删除改软删,30 天可恢复 - #46
Open
Feplus2 wants to merge 1 commit into
Open
Conversation
Feplus2
added a commit
to Feplus2/better-sageread
that referenced
this pull request
Jul 26, 2026
Feplus2
added a commit
to Feplus2/better-sageread
that referenced
this pull request
Aug 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
把"删除书籍"从不可恢复的硬删改为回收站模式:
books表新增trashed_at软删除时间戳(毫秒,可空),经database.rs的幂等迁移通道添加(不动schema.sql,方便跟上游同步)pages/library/trash.tsx)、侧栏入口与书库布局集成、book-service相应 API与 #44 的关系
两个 PR 都会引入
run_migrations迁移通道这个函数(#44 加threads.starred列,本 PR 加books.trashed_at列)——先合任何一个,另一个 rebase 时在函数里保留两段 ALTER 即可,冲突点已知且只有这一处。验证
cargo check通过、tsc --noEmit通过