From 7010aee5b200485b4216ce149db1be6a2d5d4a8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20W=C3=B6lfer?= Date: Sat, 11 Apr 2026 14:36:42 +0200 Subject: [PATCH] feat: automatically run migrations on database file --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index b11ba61..788d13f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,6 +21,10 @@ async fn main() { ) .await .expect("Failed to connect to database"); + sqlx::migrate!() + .run(&pool) + .await + .expect("Could not run database migrations"); // Set up OIDC client let oidc_client = config.oidc.to_client();