fix migration check when version_db file does no exist (#57)
This commit is contained in:
parent
25c2f7e7fd
commit
abceaf3832
@ -224,7 +224,7 @@ pub fn migrate(path: &Path, compaction_profile: &DatabaseCompactionProfile) -> R
|
|||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
if version <= USE_MIGRATION_TOOL {
|
if version != DEFAULT_VERSION && version <= USE_MIGRATION_TOOL {
|
||||||
return Err(Error::UseMigrationTool);
|
return Err(Error::UseMigrationTool);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user