diff --git a/src/config/init.rs b/src/config/init.rs index c41029b..3ea950e 100644 --- a/src/config/init.rs +++ b/src/config/init.rs @@ -236,7 +236,7 @@ pub async fn app() -> axum::Router { let pool = crate::db::create_pool() .await .expect("Failed to create pool"); - // TODO: Look into handling this. Seems redundant to run migrations multiple times + crate::db::migrations(&pool).await; let cors = cors::configure_cors().await; diff --git a/src/main.rs b/src/main.rs index af168ff..d433503 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,8 +9,8 @@ async fn main() { // initialize tracing tracing_subscriber::fmt::init(); - let pool = db::create_pool().await.expect("Failed to create pool"); - db::migrations(&pool).await; + // let pool = db::create_pool().await.expect("Failed to create pool"); + // db::migrations(&pool).await; // build our application with a route let app = config::init::app().await;