feat: apply migrations
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Aravinth Manivannan 2024-01-31 16:39:18 +05:30
parent 89e26de87d
commit ae1b446d08
Signed by: realaravinth
GPG key ID: F8F50389936984FF

View file

@ -58,6 +58,12 @@ async fn main() -> std::io::Result<()> {
let ctx = ctx::Ctx::new(&settings).await; let ctx = ctx::Ctx::new(&settings).await;
let ctx = AppCtx::new(ctx); let ctx = AppCtx::new(ctx);
sqlx::migrate!("./migrations/")
.run(&ctx.db)
.await
.unwrap();
let ip = settings.server.get_ip(); let ip = settings.server.get_ip();
println!("Starting server on: http://{ip}"); println!("Starting server on: http://{ip}");