Skip to content

fix(database): support upstream schema 21 and 22 - #528

Merged
SaladDay merged 1 commit into
mainfrom
fix/database-schema-22
Oct 22, 2026
Merged

SaladDay merged 1 commit into
mainfrom
fix/database-schema-22

Conversation

@SaladDay

Copy link
Copy Markdown
Owner

CC Switch databases at schema 21 cannot be opened by CLI v5.11.2, which supports only schema 20. Align schema creation and migrations through version 22 with farion1231/cc-switch at e4873bc8aa2555225d4867ec2f04b1290f1d21d9, adding the MCP/Skills enabled_agy and enabled_kimi fields with the same defaults and migration behavior.

Existing backup and future-version checks remain in place. Extend the existing upstream fixtures and regression tests across schemas 18–22, including local startup, idempotent migration, sync import/export, and preservation of upstream flags when records are edited. This does not add CLI management for new applications.

Validation: 80 database tests and 10 sync-protocol tests passed in an isolated filesystem; cargo fmt --check and git diff --check passed. cargo clippy --locked --lib --tests is blocked by the unchanged clippy::reversed_empty_ranges error in src/cli/tui/ui/home_chart.rs:806 (the baseline sets BAR_AXIS_INSET_ROWS to zero).

Fixes #526.

@SaladDay
SaladDay merged commit 247a5f5 into main Oct 22, 2026
6 checks passed
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.

当前数据库由较新版本的 CC Switch 创建,旧版本无法打开

1 participant