feat: automatically run migrations on database file
Some checks failed
Rust / build_and_test (push) Failing after 1m44s
Some checks failed
Rust / build_and_test (push) Failing after 1m44s
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user