Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 21 additions & 15 deletions crates/crates_io_database/src/schema.patch
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,47 @@
}

diesel::table! {
@@ -67,9 +65,9 @@
/// (Automatically generated by Diesel.)
revoked -> Bool,
@@ -25,7 +23,7 @@
/// (Automatically generated by Diesel.)
api_tokens (id) {
/// NULL or an array of crate scope patterns (see RFC #2947)
- crate_scopes -> Nullable<Array<Nullable<Text>>>,
+ crate_scopes -> Nullable<Array<Text>>,
/// The `created_at` column of the `api_tokens` table.
///
/// Its SQL type is `Timestamptz`.
@@ -33,7 +31,7 @@
/// (Automatically generated by Diesel.)
created_at -> Timestamptz,
/// An array of endpoint scopes or NULL for the `legacy` endpoint scope (see RFC #2947)
- endpoint_scopes -> Nullable<Array<Nullable<Text>>>,
+ endpoint_scopes -> Nullable<Array<Text>>,
/// The `expired_at` column of the `api_tokens` table.
///
/// Its SQL type is `Nullable<Timestamptz>`.
@@ -175,12 +173,6 @@
@@ -169,12 +167,6 @@
///
/// (Automatically generated by Diesel.)
created_at -> Timestamptz,
id -> Int4,
- /// The `path` column of the `categories` table.
- ///
- /// Its SQL type is `Ltree`.
- ///
- /// (Automatically generated by Diesel.)
- path -> Ltree,
}
}

@@ -483,7 +475,7 @@
/// The `slug` column of the `categories` table.
///
/// Its SQL type is `Varchar`.
@@ -477,7 +469,7 @@
/// Its SQL type is `Array<Nullable<Text>>`.
///
/// (Automatically generated by Diesel.)
- features -> Array<Nullable<Text>>,
+ features -> Array<Text>,
/// The `target` column of the `dependencies` table.
/// The `id` column of the `dependencies` table.
///
/// Its SQL type is `Nullable<Varchar>`.
@@ -710,6 +702,24 @@
/// Its SQL type is `Int4`.
@@ -722,6 +714,24 @@
}

diesel::table! {
Expand All @@ -70,7 +76,7 @@
/// Representation of the `reserved_crate_names` table.
///
/// (Automatically generated by Diesel.)
@@ -1094,7 +1104,8 @@
@@ -1130,7 +1140,8 @@
diesel::joinable!(crate_downloads -> crates (crate_id));
diesel::joinable!(crate_owner_invitations -> crates (crate_id));
diesel::joinable!(crate_owners -> crates (crate_id));
Expand All @@ -80,15 +86,15 @@
diesel::joinable!(crates_categories -> categories (category_id));
diesel::joinable!(crates_categories -> crates (crate_id));
diesel::joinable!(crates_keywords -> crates (crate_id));
@@ -1110,6 +1121,7 @@
@@ -1146,6 +1157,7 @@
diesel::joinable!(publish_limit_buckets -> users (user_id));
diesel::joinable!(publish_rate_overrides -> users (user_id));
diesel::joinable!(readme_renderings -> versions (version_id));
+diesel::joinable!(recent_crate_downloads -> crates (crate_id));
diesel::joinable!(trustpub_configs_github -> crates (crate_id));
diesel::joinable!(trustpub_configs_gitlab -> crates (crate_id));
diesel::joinable!(version_downloads -> versions (version_id));
@@ -1140,6 +1152,7 @@
@@ -1178,6 +1190,7 @@
publish_limit_buckets,
publish_rate_overrides,
readme_renderings,
Expand Down
Loading
Loading