Fix db issues with Option<> values and upd crates (#5594)

Some tables were lacking an option to convert Option<> to NULL.
This commit will fix that.

Also updated the crates to the latest version available.
This commit is contained in:
Mathijs van Veluw
2025-02-14 17:58:57 +01:00
committed by GitHub
parent d5c353427d
commit 3baffeee9a
6 changed files with 14 additions and 10 deletions

View File

@@ -11,6 +11,7 @@ use macros::UuidFromParam;
db_object! {
#[derive(Identifiable, Queryable, Insertable, AsChangeset)]
#[diesel(table_name = collections)]
#[diesel(treat_none_as_null = true)]
#[diesel(primary_key(uuid))]
pub struct Collection {
pub uuid: CollectionId,