fix: trigger mode and status enums
This commit is contained in:
parent
55438fbd83
commit
b7df4f9ae2
8 changed files with 38 additions and 29 deletions
|
|
@ -2,8 +2,8 @@ DROP TABLE IF EXISTS task_runs;
|
|||
CREATE TABLE task_runs (
|
||||
id TEXT PRIMARY KEY,
|
||||
task_id TEXT NOT NULL,
|
||||
status TEXT CHECK(status IN ('pending','running','failed','success')) NOT NULL DEFAULT 'pending',
|
||||
trigger_mode TEXT CHECK(trigger_mode IN ('manual','webhook','schedule')) NOT NULL DEFAULT 'manual',
|
||||
status TEXT CHECK(status IN ('Pending','Running','Failed','Success')) NOT NULL DEFAULT 'pending',
|
||||
trigger_mode TEXT CHECK(trigger_mode IN ('Manual','Webhook','Schedule')) NOT NULL DEFAULT 'manual',
|
||||
exit_code INT,
|
||||
runtime_details JSON,
|
||||
submitted_at DATETIME,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue