desktop/src-tauri/crates/core/src/storage/schema.rs
Comment 1, line 1
desktop/src-tauri/crates/core/src/storage/schema.rs:1
//! SQLite full-creation schema; this module does not implement incremental version migrations.Comment 2, line 2
desktop/src-tauri/crates/core/src/storage/schema.rs:2
//!Comment 3, line 3
desktop/src-tauri/crates/core/src/storage/schema.rs:3
//! Current initialization rules:Comment 4, line 4
desktop/src-tauri/crates/core/src/storage/schema.rs:4
//! - Maintain full creation SQL here rather than per-version migration scripts.Comment 5, line 5
desktop/src-tauri/crates/core/src/storage/schema.rs:5
//! - Existing nonzero user_version differing from the supported version returns SchemaMismatch.Comment 6, line 6
desktop/src-tauri/crates/core/src/storage/schema.rs:6
//! - The application asks whether to delete/recreate the incompatible database.Comment 7, line 7
desktop/src-tauri/crates/core/src/storage/schema.rs:7
//! - Recreate only after user consent; otherwise exit.Comment 8, line 9
desktop/src-tauri/crates/core/src/storage/schema.rs:9
/// Default schema version supported by this program.Comment 9, line 10
desktop/src-tauri/crates/core/src/storage/schema.rs:10
/// v8, 2026-09-30/F2: redefine price snapshots/rows and add daily cost backfill.Comment 10, line 11
desktop/src-tauri/crates/core/src/storage/schema.rs:11
/// v10, 2026-10-01: quota history/Copilot IDE statistics; source namespaces and call unitsComment 11, line 12
desktop/src-tauri/crates/core/src/storage/schema.rs:12
/// changed. Older experimental databases require rebuilding to avoid old turn-count contributions.Comment 12, line 13
desktop/src-tauri/crates/core/src/storage/schema.rs:13
/// v11, 2026-10-01/F2 online refresh: price_versions adds official_vendor for officialComment 13, line 14
desktop/src-tauri/crates/core/src/storage/schema.rs:14
/// provider pay-as-you-go fallback candidates; daily_cost_usage adds fallback_event_count.Comment 14, line 17
desktop/src-tauri/crates/core/src/storage/schema.rs:17
/// Complete SQL for new databases, without incremental version migration.