feat: apply migrations
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
89e26de87d
commit
ae1b446d08
1 changed files with 6 additions and 0 deletions
|
@ -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}");
|
||||||
|
|
||||||
|
|
Reference in a new issue