feat: automatically run migrations on database file
Some checks failed
Rust / build_and_test (push) Failing after 1m44s

This commit is contained in:
Lukas Wölfer
2026-04-11 14:36:42 +02:00
parent 614f044160
commit 7010aee5b2

View File

@@ -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();