diff --git a/crates/index-scheduler/src/versioning.rs b/crates/index-scheduler/src/versioning.rs index bc4937d2a..f4c502b6f 100644 --- a/crates/index-scheduler/src/versioning.rs +++ b/crates/index-scheduler/src/versioning.rs @@ -47,13 +47,10 @@ impl Versioning { let this = Self { version }; let from = match this.get_version(&wtxn)? { Some(version) => version, + // fresh DB: use the db version None => { - let assumed_version = match db_version { - (1, 12, _) => db_version, - _ => (1, 12, 7), - }; - this.set_version(&mut wtxn, assumed_version)?; - assumed_version + this.set_version(&mut wtxn, db_version)?; + db_version } }; wtxn.commit()?;