Skip to content

Commit

Permalink
undo commenting out of migrate macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Coca162 committed Jul 1, 2023
1 parent 39d6176 commit 3d875b4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() };

Expand Down

0 comments on commit 3d875b4

Please sign in to comment.