srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/crates/server/build.rs
blob: 35756ee302db5a657c9d3130a1ac344c400b8ebc (plain) (blame)
1
2
3
4
5
6
7
// sqlx::migrate! reads the migrations directory at compile time, but cargo
// only watches source files. Without this, adding a migration does not make
// cargo rebuild, so the new binary silently ships the old migration set and
// the schema change never runs.
fn main() {
    println!("cargo:rerun-if-changed=migrations");
}