File tree Expand file tree Collapse file tree 8 files changed +31
-8
lines changed
crates/crates_io_database Expand file tree Collapse file tree 8 files changed +31
-8
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ base64 = "=0.22.1"
4949bigdecimal = { version = " =0.4.5" , features = [" serde" ] }
5050cargo-manifest = " =0.15.2"
5151crates_io_cdn_logs = { path = " crates/crates_io_cdn_logs" }
52+ crates_io_database = { path = " crates/crates_io_database" }
5253crates_io_env_vars = { path = " crates/crates_io_env_vars" }
5354crates_io_github = { path = " crates/crates_io_github" }
5455crates_io_index = { path = " crates/crates_io_index" }
Original file line number Diff line number Diff line change 1+ [package ]
2+ name = " crates_io_database"
3+ version = " 0.0.0"
4+ license = " MIT OR Apache-2.0"
5+ edition = " 2021"
6+
7+ [lints ]
8+ workspace = true
9+
10+ [dependencies ]
11+ diesel = " =2.2.4"
12+ diesel_full_text_search = " =2.2.0"
Original file line number Diff line number Diff line change 1+ pub mod schema;
Original file line number Diff line number Diff line change 1- --- src /schema.rs.orig 2024-03-04 10:34:35
2- +++ src /schema.rs 2024-03-04 10:33:35
1+ --- crates/crates_io_database /schema.rs.orig 2024-03-04 10:34:35
2+ +++ crates/crates_io_database /schema.rs 2024-03-04 10:33:35
33@@ -21,9 +21,7 @@
44 /// The `pg_catalog.tsvector` SQL type
55 ///
99- pub struct Tsvector;
1010+ pub use diesel_full_text_search::Tsvector;
1111 }
12-
12+
1313 diesel::table! {
1414@@ -74,9 +72,9 @@
1515 /// (Automatically generated by Diesel.)
3535- path -> Ltree,
3636 }
3737 }
38-
38+
3939@@ -476,7 +468,7 @@
4040 /// Its SQL type is `Array<Nullable<Text>>`.
4141 ///
4747 /// Its SQL type is `Nullable<Varchar>`.
4848@@ -703,6 +695,24 @@
4949 }
50-
50+
5151 diesel::table! {
5252+ /// Representation of the `recent_crate_downloads` view.
5353+ ///
File renamed without changes.
Original file line number Diff line number Diff line change 11# For documentation on how to configure this file,
22# see diesel.rs/guides/configuring-diesel-cli
33[print_schema ]
4- file = " src/schema.rs"
4+ file = " crates/crates_io_database/ src/schema.rs"
55with_docs = true
6- patch_file = " src/schema.patch"
6+ patch_file = " crates/crates_io_database/ src/schema.patch"
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ extern crate serde_json;
1919extern crate tracing;
2020
2121pub use crate :: { app:: App , email:: Emails } ;
22+ pub use crates_io_database:: schema;
2223use std:: sync:: Arc ;
2324
2425use crate :: app:: AppState ;
@@ -49,7 +50,6 @@ pub mod models;
4950pub mod rate_limiter;
5051mod real_ip;
5152mod router;
52- pub mod schema;
5353pub mod sentry;
5454pub mod sql;
5555pub mod sqs;
You can’t perform that action at this time.
0 commit comments