From 717887dd57405e296d8fa73fd1a1e929ba1cbffb Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Tue, 12 May 2026 16:49:58 -0400 Subject: [PATCH] task column for prompt --- .../20250708000000_create_tasks_table.sql | 8 +++++++- 1 file changed, 7 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 3ab5c8e843..c6fe4a2541 100644 --- a/_database/sql/artcraft_migrations/20250708000000_create_tasks_table.sql +++ b/_database/sql/artcraft_migrations/20250708000000_create_tasks_table.sql @@ -19,7 +19,8 @@ -- tasks_v6.sqlite - added two fields: -- on_failure_type -- on_failure_message --- tasks_v7.sqlite - added two fields (for fal): +-- tasks_v7.sqlite - added prompt token + two fields (for fal): +-- prompt_token -- queue_status_url -- queue_response_url @@ -49,6 +50,11 @@ CREATE TABLE tasks ( -- The primary key for the job in the provider's system. provider_job_id TEXT, + -- OPTIONAL. + -- For third party jobs, we need to record the prompt details upfront. + -- We create a prompt record and store the token to associate once the task completes. + prompt_token TEXT, + -- OPTIONAL. -- Tell the job system which caller initiated the task. -- e.g. 'canvas'