Skip to content

Commit

Permalink
fix: [#56] triggering recompilation on migration changes
Browse files Browse the repository at this point in the history
Migrations were not executed while running integration tests.
After adding a new migration without changing any Rust code.

More info: https://docs.rs/sqlx/latest/sqlx/macro.migrate.html#triggering-recompilation-on-migration-changes
  • Loading branch information
josecelano committed Nov 30, 2022
1 parent cf09283 commit 01921ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// generated by `sqlx migrate build-script`
fn main() {
// trigger recompilation when a new migration is added
println!("cargo:rerun-if-changed=migrations");
}

0 comments on commit 01921ed

Please sign in to comment.