aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 2968f20..8693381 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -123,6 +123,9 @@ async fn main() {
)
.await
.expect("Couldn't connect to postgresql");
+ sqlx::migrate!("./migrations")
+ .run(&pool)
+ .await.unwrap();
Ok(Data {
pg: Mutex::new(pool),
})