Repository navigation
fix: 延迟小时汇总随节点、探测级联删除,回退到旧版期间的删除不再留下历史 - #90
Merged
Merged
Conversation
ping_hour 的 node_id、task_id 加外键。1.3.1 及更早的 hub 不认识这张表, 回退到它们期间删掉 id 最大的节点或探测、再新建一个,新建的拿到同一个 id, 升级回来后会显示被删那个的小时级延迟历史。外键由 SQLite 执行,哪个版本删都会清掉。
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.
ping_hour的node_id、task_id加外键,删除节点或探测时级联清除,与metric_hour相同。1.3.1 及更早的 hub 不认识这张表:回退到它们期间删掉 id 最大的节点或探测、再新建一个,新建的拿到同一个 id,升级回来后在 7 天以上的延迟图里显示被删那个的历史。外键由 SQLite 执行,哪个版本删都会清掉ping_hour;迁移里清孤儿行的语句一并删掉测试
cargo fmt --check、cargo clippy --all-targets -- -D warnings、cargo test(135 个)通过FOREIGN KEY constraint failed