summaryrefslogtreecommitdiff
path: root/internal/storage/db.go
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-03-09 01:17:05 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-03-09 01:17:05 +0000
commit13846ea4ce4bacfadda6f86c5e48e5e76e13db07 (patch)
tree20838cbcbc343e8cd8b8f6bb0f8ad347c3fa52b3 /internal/storage/db.go
parentf9d2056f4d10fe7dde71f5d17d8e8c473b3a611f (diff)
feat: delete templates feature and allow requeueing BUDGET_EXCEEDED tasks
Removed all template-related code from frontend (tabs, modals, logic) and backend (routes, files, DB table). Updated BUDGET_EXCEEDED tasks to be requeueable with a Restart button. Fixed ReferenceError in isUserEditing for Node.js tests.
Diffstat (limited to 'internal/storage/db.go')
-rw-r--r--internal/storage/db.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/internal/storage/db.go b/internal/storage/db.go
index 0a4f7a5..fb754f5 100644
--- a/internal/storage/db.go
+++ b/internal/storage/db.go
@@ -68,18 +68,6 @@ func (s *DB) migrate() error {
CREATE INDEX IF NOT EXISTS idx_tasks_state ON tasks(state);
CREATE INDEX IF NOT EXISTS idx_executions_status ON executions(status);
CREATE INDEX IF NOT EXISTS idx_executions_task_id ON executions(task_id);
-
- CREATE TABLE IF NOT EXISTS templates (
- id TEXT PRIMARY KEY,
- name TEXT NOT NULL,
- description TEXT,
- config_json TEXT NOT NULL DEFAULT '{}',
- timeout TEXT,
- priority TEXT NOT NULL DEFAULT 'normal',
- tags_json TEXT NOT NULL DEFAULT '[]',
- created_at DATETIME NOT NULL,
- updated_at DATETIME NOT NULL
- );
`
if _, err := s.db.Exec(schema); err != nil {
return err