Skip to content

Commit 5cdb9ed

Browse files
committed
fix(cache): bump cache DB version for schema rename
1 parent b4fd1d7 commit 5cdb9ed

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • crates/vite_task/src/session/cache

crates/vite_task/src/session/cache/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,16 +157,16 @@ impl ExecutionCache {
157157
"CREATE TABLE execution_key_to_fingerprint (key BLOB PRIMARY KEY, value BLOB);",
158158
(),
159159
)?;
160-
conn.execute("PRAGMA user_version = 6", ())?;
160+
conn.execute("PRAGMA user_version = 7", ())?;
161161
}
162-
1..=5 => {
162+
1..=6 => {
163163
// old internal db version. reset
164164
conn.set_db_config(DbConfig::SQLITE_DBCONFIG_RESET_DATABASE, true)?;
165165
conn.execute("VACUUM", ())?;
166166
conn.set_db_config(DbConfig::SQLITE_DBCONFIG_RESET_DATABASE, false)?;
167167
}
168-
6 => break, // current version
169-
7.. => {
168+
7 => break, // current version
169+
8.. => {
170170
return Err(anyhow::anyhow!("Unrecognized database version: {user_version}"));
171171
}
172172
}

0 commit comments

Comments
 (0)