Skip to content

Commit 6fe0761

Browse files
committed
database/models/version: Adjust published_by field to be optional
When "Trusted Publishing" is used we can no longer associate the release with a specific crates.io user account. The column is already nullable since old releases did not track the information, so there are no changes needed on the database side.
1 parent 37834e4 commit 6fe0761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/crates_io_database/src/models/version.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ pub struct NewVersion<'a> {
9090
license: Option<&'a str>,
9191
#[builder(default, name = "size")]
9292
crate_size: i32,
93-
published_by: i32,
93+
published_by: Option<i32>,
9494
checksum: &'a str,
9595
links: Option<&'a str>,
9696
rust_version: Option<&'a str>,

0 commit comments

Comments
 (0)