only run migrations on prod instances

This commit is contained in:
Jai A 2025-03-15 08:32:45 -07:00
parent c998d2566e
commit d49cc87b8c
No known key found for this signature in database
GPG Key ID: 9A9F9B7250E9883C

View File

@ -66,11 +66,11 @@ async fn main() -> std::io::Result<()> {
"Starting Labrinth on {}",
dotenvy::var("BIND_ADDR").unwrap()
);
}
database::check_for_migrations()
.await
.expect("An error occurred while running migrations.");
}
// Database Connector
let pool = database::connect()