Skip to content

Commit

Permalink
Ignore missing migrations since we can layer them
Browse files Browse the repository at this point in the history
  • Loading branch information
tarkah committed Nov 26, 2024
1 parent 043ceb2 commit 2decefc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/service/src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ impl Database {
)
.await?;

sqlx::migrate!("./migrations").run(&pool).await?;
sqlx::migrate!("./migrations")
.set_ignore_missing(true)
.run(&pool)
.await?;

Ok(Self { pool })
}
Expand Down

0 comments on commit 2decefc

Please sign in to comment.