From 3d875b4108b7bd9069945ccb849753e47b0e43ae Mon Sep 17 00:00:00 2001 From: Coca Date: Sun, 2 Jul 2023 00:17:04 +0300 Subject: [PATCH] undo commenting out of migrate macro --- src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 2872edc..6eeb404 100644 --- a/src/main.rs +++ b/src/main.rs @@ -60,11 +60,11 @@ async fn main() { .await .expect("Failed to connect to database"); - // // Makes sure the sql tables are updated to the latest definitions - // sqlx::migrate!() - // .run(&db) - // .await - // .expect("Unable to apply migrations!"); + // Makes sure the sql tables are updated to the latest definitions + sqlx::migrate!() + .run(&db) + .await + .expect("Unable to apply migrations!"); let data = Data { db: db.clone() };