Run migrations if new db was created

This commit is contained in:
Tony Klink 2024-01-12 16:27:10 -06:00
parent e9fcc71382
commit 292010b830
Signed by: klink
GPG key ID: 85175567C4D19231

View file

@ -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 {