Run migrations if new db was created
This commit is contained in:
parent
e9fcc71382
commit
292010b830
|
@ -164,6 +164,7 @@ impl SqliteDb {
|
|||
}
|
||||
if let Ok(pool) = pool_options.connect(&env_db_path).await {
|
||||
log::info!("Connected to sqlite pool {}", name);
|
||||
SqliteDb::migrate(&pool).await;
|
||||
|
||||
pool
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue