Revert "Perfect! All tasks have been completed successfully. Here's a summary…" (#1010)
This reverts commit 76b0142085.
This commit is contained in:
@@ -46,12 +46,12 @@
|
||||
{
|
||||
"name": "has_in_progress_attempt!: i64",
|
||||
"ordinal": 8,
|
||||
"type_info": "Integer"
|
||||
"type_info": "Null"
|
||||
},
|
||||
{
|
||||
"name": "last_attempt_failed!: i64",
|
||||
"ordinal": 9,
|
||||
"type_info": "Integer"
|
||||
"type_info": "Null"
|
||||
},
|
||||
{
|
||||
"name": "executor!: String",
|
||||
@@ -71,8 +71,8 @@
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
true
|
||||
]
|
||||
},
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
PRAGMA foreign_keys = OFF;
|
||||
|
||||
-- Create new tasks table with updated foreign key constraint
|
||||
CREATE TABLE tasks_new (
|
||||
id BLOB PRIMARY KEY,
|
||||
project_id BLOB NOT NULL,
|
||||
title TEXT NOT NULL,
|
||||
description TEXT,
|
||||
status TEXT NOT NULL DEFAULT 'todo'
|
||||
CHECK (status IN ('todo','inprogress','done','cancelled','inreview')),
|
||||
parent_task_attempt BLOB,
|
||||
created_at TEXT NOT NULL DEFAULT (datetime('now', 'subsec')),
|
||||
updated_at TEXT NOT NULL DEFAULT (datetime('now', 'subsec')),
|
||||
FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE,
|
||||
FOREIGN KEY (parent_task_attempt) REFERENCES task_attempts(id) ON DELETE SET NULL
|
||||
);
|
||||
|
||||
-- Copy data from old table to new table
|
||||
INSERT INTO tasks_new (id, project_id, title, description, status, parent_task_attempt, created_at, updated_at)
|
||||
SELECT id, project_id, title, description, status, parent_task_attempt, created_at, updated_at
|
||||
FROM tasks;
|
||||
|
||||
-- Drop old table
|
||||
DROP TABLE tasks;
|
||||
|
||||
-- Rename new table to original name
|
||||
ALTER TABLE tasks_new RENAME TO tasks;
|
||||
|
||||
-- Recreate index for parent_task_attempt lookups
|
||||
CREATE INDEX idx_tasks_parent_task_attempt ON tasks(parent_task_attempt);
|
||||
|
||||
PRAGMA foreign_keys = ON;
|
||||
Reference in New Issue
Block a user