mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-10-26 01:34:51 +08:00
fix(backup): preserve SQL fidelity and recovery safety (#6146)
* fix(backup): preserve incremental auto-vacuum on import * fix(backup): preserve SQLite scalar values in SQL dumps * fix(backup): preserve autoincrement high-water marks * fix(backup): restore valid empty SQL exports * fix(backup): make restores atomic under retention * fix(backup): publish safety snapshots atomically * fix(backup): serialize backup file operations
This commit is contained in:
1 parent
1f38c83826
commit
dfb2e5235b
2 files changed
+1281
-93
No files matched your search
+1280
-92
File diff suppressed because it is too large.
Load diff
@@ -2923,7 +2923,7 @@ impl Database {
|
||||
Self::ensure_model_pricing_seeded_on_conn(&conn)
|
||||
}
|
||||
|
||||
fn ensure_model_pricing_seeded_on_conn(conn: &Connection) -> Result<(), AppError> {
|
||||
pub(crate) fn ensure_model_pricing_seeded_on_conn(conn: &Connection) -> Result<(), AppError> {
|
||||
// 每次启动都执行 INSERT OR IGNORE,增量追加新模型;仅修复仍等于旧内置值的定价。
|
||||
Self::seed_model_pricing(conn)?;
|
||||
Self::repair_current_model_pricing(conn)
|
||||
|
||||
Reference in new issue
Block a user