Skip to content

Commit f8bc0e6

Browse files
committed
Fix tests
1 parent b8aace5 commit f8bc0e6

File tree

1 file changed

+58
-40
lines changed

1 file changed

+58
-40
lines changed

src/schema.patch

Lines changed: 58 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,74 @@
11
diff --git a/src/schema.rs b/src/schema.rs
2-
index 1570becc..b1d09d0d 100644
2+
index df884e4..18e08cd 100644
33
--- a/src/schema.rs
44
+++ b/src/schema.rs
5-
@@ -814,35 +814,6 @@ table! {
6-
}
7-
}
8-
9-
-table! {
10-
- use diesel::sql_types::*;
11-
- use diesel_full_text_search::{TsVector as Tsvector};
12-
-
13-
- /// Representation of the `version_authors` table.
14-
- ///
15-
- /// (Automatically generated by Diesel.)
16-
- version_authors (id) {
17-
- /// The `id` column of the `version_authors` table.
18-
- ///
19-
- /// Its SQL type is `Int4`.
20-
- ///
21-
- /// (Automatically generated by Diesel.)
22-
- id -> Int4,
23-
- /// The `version_id` column of the `version_authors` table.
24-
- ///
25-
- /// Its SQL type is `Int4`.
26-
- ///
27-
- /// (Automatically generated by Diesel.)
28-
- version_id -> Int4,
29-
- /// The `name` column of the `version_authors` table.
5+
@@ -1,3 +1,5 @@
6+
+#![allow(unused_imports)]
7+
+
8+
table! {
9+
use diesel::sql_types::*;
10+
use diesel_full_text_search::{TsVector as Tsvector};
11+
@@ -171,12 +173,6 @@
12+
///
13+
/// (Automatically generated by Diesel.)
14+
created_at -> Timestamp,
15+
- /// The `path` column of the `categories` table.
3016
- ///
31-
- /// Its SQL type is `Varchar`.
17+
- /// Its SQL type is `Ltree`.
3218
- ///
3319
- /// (Automatically generated by Diesel.)
34-
- name -> Varchar,
35-
- }
36-
-}
37-
-
20+
- path -> Ltree,
21+
}
22+
}
23+
24+
@@ -678,6 +674,24 @@
25+
}
26+
3827
table! {
28+
+ /// Representation of the `recent_crate_downloads` view.
29+
+ ///
30+
+ /// This data represents the downloads in the last 90 days.
31+
+ /// This view does not contain realtime data.
32+
+ /// It is refreshed by the `update-downloads` script.
33+
+ recent_crate_downloads (crate_id) {
34+
+ /// The `crate_id` column of the `recent_crate_downloads` view.
35+
+ ///
36+
+ /// Its SQL type is `Integer`.
37+
+ crate_id -> Integer,
38+
+ /// The `downloads` column of the `recent_crate_downloads` table.
39+
+ ///
40+
+ /// Its SQL type is `BigInt`.
41+
+ downloads -> BigInt,
42+
+ }
43+
+}
44+
+
45+
+table! {
3946
use diesel::sql_types::*;
4047
use diesel_full_text_search::{TsVector as Tsvector};
41-
@@ -1050,7 +1021,6 @@ joinable!(publish_limit_buckets -> users (user_id));
48+
49+
@@ -1003,7 +1017,8 @@
50+
joinable!(badges -> crates (crate_id));
51+
joinable!(crate_owner_invitations -> crates (crate_id));
52+
joinable!(crate_owners -> crates (crate_id));
53+
-joinable!(crate_owners -> users (created_by));
54+
+joinable!(crate_owners -> teams (owner_id));
55+
+joinable!(crate_owners -> users (owner_id));
56+
joinable!(crates_categories -> categories (category_id));
57+
joinable!(crates_categories -> crates (crate_id));
58+
joinable!(crates_keywords -> crates (crate_id));
59+
@@ -1016,6 +1031,7 @@
60+
joinable!(publish_limit_buckets -> users (user_id));
4261
joinable!(publish_rate_overrides -> users (user_id));
4362
joinable!(readme_renderings -> versions (version_id));
44-
joinable!(recent_crate_downloads -> crates (crate_id));
45-
-joinable!(version_authors -> versions (version_id));
63+
+joinable!(recent_crate_downloads -> crates (crate_id));
64+
joinable!(version_authors -> versions (version_id));
4665
joinable!(version_downloads -> versions (version_id));
4766
joinable!(version_owner_actions -> api_tokens (api_token_id));
48-
joinable!(version_owner_actions -> users (user_id));
49-
@@ -1081,7 +1051,6 @@ allow_tables_to_appear_in_same_query!(
67+
@@ -1043,6 +1059,7 @@
68+
publish_limit_buckets,
69+
publish_rate_overrides,
70+
readme_renderings,
71+
+ recent_crate_downloads,
5072
reserved_crate_names,
5173
teams,
5274
users,
53-
- version_authors,
54-
version_downloads,
55-
version_owner_actions,
56-
versions,

0 commit comments

Comments
 (0)