mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2025-01-05 03:08:45 +00:00
Run plume_models::migrate_data() on initialization
This commit is contained in:
parent
2fcb449ed8
commit
b41e982daf
1 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,7 @@ use diesel::r2d2::ConnectionManager;
|
|||
use plume_models::{
|
||||
db_conn::{DbPool, PragmaForeignKey},
|
||||
instance::Instance,
|
||||
migrate_data,
|
||||
migrations::IMPORTED_MIGRATIONS,
|
||||
remote_fetch_actor::RemoteFetchActor,
|
||||
search::{actor::SearchActor, Searcher as UnmanagedSearcher},
|
||||
|
@ -79,6 +80,7 @@ Then try to restart Plume.
|
|||
"#
|
||||
)
|
||||
}
|
||||
migrate_data(&dbpool).expect("Failed to migrate data");
|
||||
let workpool = ScheduledThreadPool::with_name("worker {}", num_cpus::get());
|
||||
// we want a fast exit here, so
|
||||
let searcher = Arc::new(UnmanagedSearcher::open_or_recreate(
|
||||
|
|
Loading…
Reference in a new issue