|
1 | 1 | diff --git a/src/schema.rs b/src/schema.rs
|
2 |
| -index 1570becc..b1d09d0d 100644 |
| 2 | +index df884e4..18e08cd 100644 |
3 | 3 | --- a/src/schema.rs
|
4 | 4 | +++ 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. |
30 | 16 | - ///
|
31 |
| -- /// Its SQL type is `Varchar`. |
| 17 | +- /// Its SQL type is `Ltree`. |
32 | 18 | - ///
|
33 | 19 | - /// (Automatically generated by Diesel.)
|
34 |
| -- name -> Varchar, |
35 |
| -- } |
36 |
| --} |
37 |
| -- |
| 20 | +- path -> Ltree, |
| 21 | + } |
| 22 | + } |
| 23 | + |
| 24 | +@@ -678,6 +674,24 @@ |
| 25 | + } |
| 26 | + |
38 | 27 | 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! { |
39 | 46 | use diesel::sql_types::*;
|
40 | 47 | 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)); |
42 | 61 | joinable!(publish_rate_overrides -> users (user_id));
|
43 | 62 | 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)); |
46 | 65 | joinable!(version_downloads -> versions (version_id));
|
47 | 66 | 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, |
50 | 72 | reserved_crate_names,
|
51 | 73 | teams,
|
52 | 74 | users,
|
53 |
| -- version_authors, |
54 |
| - version_downloads, |
55 |
| - version_owner_actions, |
56 |
| - versions, |
|
0 commit comments