chore: fix open application error when upgrade to 0.0.5.1

This commit is contained in:
appflowy
2022-09-16 13:15:13 +08:00
parent bc404c4ea5
commit f792283e70
4 changed files with 19 additions and 8 deletions

View File

@ -78,7 +78,7 @@ impl FolderMigration {
let folder = FolderPad::new(workspaces, trash)?;
KV::set_bool(&key, true);
tracing::trace!("Run folder v1 migration");
tracing::info!("Run folder v1 migration");
Ok(Some(folder))
}
@ -89,11 +89,10 @@ impl FolderMigration {
}
let _ = self.migration_folder_rev_struct(folder_id).await?;
KV::set_bool(&key, true);
tracing::trace!("Run folder v2 migration");
// tracing::info!("Run folder v2 migration");
Ok(())
}
#[allow(dead_code)]
pub async fn run_v3_migration(&self, folder_id: &FolderId) -> FlowyResult<()> {
let key = migration_flag_key(&self.user_id, V3_MIGRATION);
if KV::get_bool(&key) {
@ -101,7 +100,7 @@ impl FolderMigration {
}
let _ = self.migration_folder_rev_struct(folder_id).await?;
KV::set_bool(&key, true);
tracing::trace!("Run folder v3 migration");
tracing::info!("Run folder v3 migration");
Ok(())
}

View File

@ -101,8 +101,7 @@ impl FolderPersistence {
}
let _ = migrations.run_v2_migration(folder_id).await?;
// let _ = migrations.run_v3_migration(folder_id).await?;
let _ = migrations.run_v3_migration(folder_id).await?;
Ok(())
}