Skip to content

Commit 0309176

Browse files
committed
diesel: Regenerate schema.rs and corresponding patch file
1 parent 5e05a64 commit 0309176

File tree

2 files changed

+14
-25
lines changed

2 files changed

+14
-25
lines changed

src/schema.patch

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/src/schema.rs b/src/schema.rs
2-
index 80d3baaf0..c39c711e2 100644
2+
index bb2658942..1bc6801ea 100644
33
--- a/src/schema.rs
44
+++ b/src/schema.rs
55
@@ -14,9 +14,7 @@ pub mod sql_types {
@@ -13,23 +13,19 @@ index 80d3baaf0..c39c711e2 100644
1313
}
1414

1515
diesel::table! {
16-
@@ -71,13 +69,13 @@ diesel::table! {
17-
/// Its SQL type is `Nullable<Array<Nullable<Text>>>`.
18-
///
16+
@@ -67,9 +65,9 @@ diesel::table! {
1917
/// (Automatically generated by Diesel.)
18+
revoked -> Bool,
19+
/// NULL or an array of crate scope patterns (see RFC #2947)
2020
- crate_scopes -> Nullable<Array<Nullable<Text>>>,
2121
+ crate_scopes -> Nullable<Array<Text>>,
22-
/// The `endpoint_scopes` column of the `api_tokens` table.
23-
///
24-
/// Its SQL type is `Nullable<Array<Nullable<Text>>>`.
25-
///
26-
/// (Automatically generated by Diesel.)
22+
/// An array of endpoint scopes or NULL for the `legacy` endpoint scope (see RFC #2947)
2723
- endpoint_scopes -> Nullable<Array<Nullable<Text>>>,
2824
+ endpoint_scopes -> Nullable<Array<Text>>,
2925
}
3026
}
3127

32-
@@ -195,12 +193,6 @@ diesel::table! {
28+
@@ -193,12 +191,6 @@ diesel::table! {
3329
///
3430
/// (Automatically generated by Diesel.)
3531
created_at -> Timestamp,
@@ -42,7 +38,7 @@ index 80d3baaf0..c39c711e2 100644
4238
}
4339
}
4440

45-
@@ -473,7 +465,7 @@ diesel::table! {
41+
@@ -471,7 +463,7 @@ diesel::table! {
4642
/// Its SQL type is `Array<Nullable<Text>>`.
4743
///
4844
/// (Automatically generated by Diesel.)
@@ -51,7 +47,7 @@ index 80d3baaf0..c39c711e2 100644
5147
/// The `target` column of the `dependencies` table.
5248
///
5349
/// Its SQL type is `Nullable<Varchar>`.
54-
@@ -677,6 +669,24 @@ diesel::table! {
50+
@@ -675,6 +667,24 @@ diesel::table! {
5551
}
5652
}
5753

@@ -76,7 +72,7 @@ index 80d3baaf0..c39c711e2 100644
7672
diesel::table! {
7773
/// Representation of the `reserved_crate_names` table.
7874
///
79-
@@ -983,7 +993,8 @@ diesel::joinable!(api_tokens -> users (user_id));
75+
@@ -988,7 +998,8 @@ diesel::joinable!(api_tokens -> users (user_id));
8076
diesel::joinable!(badges -> crates (crate_id));
8177
diesel::joinable!(crate_owner_invitations -> crates (crate_id));
8278
diesel::joinable!(crate_owners -> crates (crate_id));
@@ -86,15 +82,15 @@ index 80d3baaf0..c39c711e2 100644
8682
diesel::joinable!(crates_categories -> categories (category_id));
8783
diesel::joinable!(crates_categories -> crates (crate_id));
8884
diesel::joinable!(crates_keywords -> crates (crate_id));
89-
@@ -996,6 +1007,7 @@ diesel::joinable!(follows -> users (user_id));
85+
@@ -1001,6 +1012,7 @@ diesel::joinable!(follows -> users (user_id));
9086
diesel::joinable!(publish_limit_buckets -> users (user_id));
9187
diesel::joinable!(publish_rate_overrides -> users (user_id));
9288
diesel::joinable!(readme_renderings -> versions (version_id));
9389
+diesel::joinable!(recent_crate_downloads -> crates (crate_id));
9490
diesel::joinable!(version_downloads -> versions (version_id));
9591
diesel::joinable!(version_owner_actions -> api_tokens (api_token_id));
9692
diesel::joinable!(version_owner_actions -> users (user_id));
97-
@@ -1022,6 +1034,7 @@ diesel::allow_tables_to_appear_in_same_query!(
93+
@@ -1027,6 +1039,7 @@ diesel::allow_tables_to_appear_in_same_query!(
9894
publish_limit_buckets,
9995
publish_rate_overrides,
10096
readme_renderings,

src/schema.rs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,9 @@ diesel::table! {
6464
///
6565
/// (Automatically generated by Diesel.)
6666
revoked -> Bool,
67-
/// The `crate_scopes` column of the `api_tokens` table.
68-
///
69-
/// Its SQL type is `Nullable<Array<Nullable<Text>>>`.
70-
///
71-
/// (Automatically generated by Diesel.)
67+
/// NULL or an array of crate scope patterns (see RFC #2947)
7268
crate_scopes -> Nullable<Array<Text>>,
73-
/// The `endpoint_scopes` column of the `api_tokens` table.
74-
///
75-
/// Its SQL type is `Nullable<Array<Nullable<Text>>>`.
76-
///
77-
/// (Automatically generated by Diesel.)
69+
/// An array of endpoint scopes or NULL for the `legacy` endpoint scope (see RFC #2947)
7870
endpoint_scopes -> Nullable<Array<Text>>,
7971
}
8072
}
@@ -965,6 +957,7 @@ diesel::table! {
965957
/// Its SQL type is `Bpchar`.
966958
///
967959
/// (Automatically generated by Diesel.)
960+
#[max_length = 64]
968961
checksum -> Bpchar,
969962
/// The `links` column of the `versions` table.
970963
///

0 commit comments

Comments
 (0)