mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: versionize migration (#5060)
This commit is contained in:
@ -48,6 +48,7 @@ serde_repr.workspace = true
|
||||
futures.workspace = true
|
||||
walkdir = "2.4.0"
|
||||
sysinfo = "0.30.5"
|
||||
semver = "1.0.22"
|
||||
|
||||
[features]
|
||||
default = ["rev-sqlite"]
|
||||
|
@ -1,6 +1,7 @@
|
||||
#![allow(unused_doc_comments)]
|
||||
|
||||
use flowy_storage::ObjectStorageService;
|
||||
use semver::Version;
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
use sysinfo::System;
|
||||
@ -93,6 +94,7 @@ impl AppFlowyCore {
|
||||
server_type,
|
||||
Arc::downgrade(&store_preference),
|
||||
));
|
||||
let app_version = Version::parse(&config.app_version).unwrap_or_else(|_| Version::new(0, 5, 4));
|
||||
|
||||
event!(tracing::Level::DEBUG, "Init managers",);
|
||||
let (
|
||||
@ -115,6 +117,7 @@ impl AppFlowyCore {
|
||||
&config.storage_path,
|
||||
&config.application_path,
|
||||
&config.device_id,
|
||||
app_version,
|
||||
);
|
||||
|
||||
let authenticate_user = Arc::new(AuthenticateUser::new(
|
||||
|
Reference in New Issue
Block a user