Skip to content

Commit c8dd877

Browse files
committed
move migrations into docs_rs_database subcrate
1 parent e6d7c66 commit c8dd877

File tree

54 files changed

+72
-69
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+72
-69
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ lol_html = "2.0.0"
9898
font-awesome-as-a-crate = { path = "crates/lib/font-awesome-as-a-crate" }
9999
getrandom = "0.3.1"
100100
itertools = { workspace = true }
101-
hex = "0.4.3"
102101
derive_more = { workspace = true }
103102
sysinfo = { version = "0.37.2", default-features = false, features = ["system"] }
104103
derive_builder = "0.20.2"

crates/lib/docs_rs_database/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
name = "docs_rs_database"
33
version = "0.1.0"
44
edition = "2024"
5+
build = "build.rs"
56

67
[dependencies]
78
anyhow = { workspace = true }
89
docs_rs_env_vars = { path = "../docs_rs_env_vars" }
910
docs_rs_opentelemetry = { path = "../docs_rs_opentelemetry" }
1011
futures-util = { workspace = true }
12+
hex = "0.4.3"
1113
opentelemetry = { workspace = true }
1214
sqlx = { workspace = true }
1315
thiserror = { workspace = true }
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
fn main() {
2+
// trigger recompilation when a new migration is added
3+
println!("cargo:rerun-if-changed=migrations");
4+
}

migrations/20231021111635_initial.down.sql renamed to crates/lib/docs_rs_database/migrations/20231021111635_initial.down.sql

File renamed without changes.

migrations/20231021111635_initial.up.sql renamed to crates/lib/docs_rs_database/migrations/20231021111635_initial.up.sql

File renamed without changes.

migrations/20240221104457_drop_releases_build_status.down.sql renamed to crates/lib/docs_rs_database/migrations/20240221104457_drop_releases_build_status.down.sql

File renamed without changes.

migrations/20240221104457_drop_releases_build_status.up.sql renamed to crates/lib/docs_rs_database/migrations/20240221104457_drop_releases_build_status.up.sql

File renamed without changes.

migrations/20240221113734_drop_releases_rustc_version.down.sql renamed to crates/lib/docs_rs_database/migrations/20240221113734_drop_releases_rustc_version.down.sql

File renamed without changes.

migrations/20240221113734_drop_releases_rustc_version.up.sql renamed to crates/lib/docs_rs_database/migrations/20240221113734_drop_releases_rustc_version.up.sql

File renamed without changes.

0 commit comments

Comments
 (0)