fix migration check when version_db file does no exist (#57)

This commit is contained in:
rakita 2020-09-23 19:57:52 +02:00 committed by GitHub
parent 25c2f7e7fd
commit abceaf3832
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ pub fn migrate(path: &Path, compaction_profile: &DatabaseCompactionProfile) -> R
return Ok(());
}
if version <= USE_MIGRATION_TOOL {
if version != DEFAULT_VERSION && version <= USE_MIGRATION_TOOL {
return Err(Error::UseMigrationTool);
}