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

View File

@ -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);
} }