From 0b5ff4b0b4135357b4a6597172958e87c331cb2e Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Tue, 10 Mar 2026 19:44:11 -0400 Subject: [PATCH] migrate tauri db --- .../20250708000000_create_tasks_table.sql | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/_database/sql/artcraft_migrations/20250708000000_create_tasks_table.sql b/_database/sql/artcraft_migrations/20250708000000_create_tasks_table.sql index 4e09d9a0d8..033885a869 100644 --- a/_database/sql/artcraft_migrations/20250708000000_create_tasks_table.sql +++ b/_database/sql/artcraft_migrations/20250708000000_create_tasks_table.sql @@ -16,7 +16,9 @@ -- on_complete_primary_media_file_class, -- on_complete_primary_media_file_cdn_url, -- on_complete_primary_media_file_thumbnail_url_template, --- +-- tasks_v6.sqlite - added two fields: +-- on_failure_type +-- on_failure_message CREATE TABLE tasks ( -- Task auto-incrementing primary key. @@ -84,6 +86,15 @@ CREATE TABLE tasks ( -- The URL template for the thumbnail of the primary media file. on_complete_primary_media_file_thumbnail_url_template TEXT, + -- OPTIONAL. + -- An enum-like string describing the failure reason (even for non-terminal failures). + -- The enum is `TaskFailureType`, which is a close analogue of the backend API's `FrontendFailureCategory`. + on_failure_type TEXT, + + -- OPTIONAL. + -- A human-readable message describing the failure reason (even for non-terminal failures). + on_failure_message TEXT, + created_at INTEGER NOT NULL DEFAULT (unixepoch('now')), updated_at INTEGER NOT NULL DEFAULT (unixepoch('now')), completed_at INTEGER DEFAULT NULL