Treat None as NULL for explicity clearing values in the XP database
Badgey Deployment / build (push) Successful in 5m50s Details

This commit is contained in:
Xyon 2023-09-26 13:34:03 +01:00
parent 203bd176f1
commit 2917b20d71
Signed by: xyon
GPG Key ID: DD18155D6B18078D
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "badgey"
version = "3.0.0"
version = "3.0.1"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -13,6 +13,7 @@ use crate::badgey::schema::*;
#[diesel(belongs_to(UserInfo, foreign_key = user_id))]
#[diesel(table_name = xp_table)]
#[diesel(primary_key(user_id))]
#[diesel(treat_none_as_null = true)]
pub struct Xp {
pub user_id: i64,
pub user_current_level: i32,