bump database version

This commit is contained in:
Brandon Thomas committed 2026-03-10 20:03:40 -04:00
1 parent 8d3d9e1936
commit eb660f5451
2 files changed
+4 -3

No files matched your search

@@ -7,4 +7,4 @@
/// We increment this whenever we make a change to the database schema.
/// This prevents deadlock on startup if the schema has changed from the
/// previous version.
pub const TASK_DATABASE_VERSION: u32 = 5;
pub const TASK_DATABASE_VERSION: u32 = 6;
@@ -37,8 +37,9 @@ impl_enum_display_and_debug_using_to_str!(TaskFailureType);
impl TaskFailureType {
/// Convert to the Tauri-side `TaskFailureType`, if there is a matching variant.
pub fn try_from_frontend_failure_category(category: FrontendFailureCategory) -> Self {
/// Convert the web API's `FrontendFailureCategory` to a Tauri-facing type, if there is a matching variant.
/// If there isn't a matching variant, return `Unknown`.
pub fn from_frontend_failure_category(category: FrontendFailureCategory) -> Self {
match category {
FrontendFailureCategory::ModelRulesViolation => Self::RuleBansUserContent, // NB: This is a legacy enum value.
FrontendFailureCategory::RuleBansUserImage => Self::RuleBansUserImage,