summaryrefslogtreecommitdiff
path: root/makima/migrations/20250108000000_add_completion_actions.sql
diff options
context:
space:
mode:
Diffstat (limited to 'makima/migrations/20250108000000_add_completion_actions.sql')
-rw-r--r--makima/migrations/20250108000000_add_completion_actions.sql13
1 files changed, 13 insertions, 0 deletions
diff --git a/makima/migrations/20250108000000_add_completion_actions.sql b/makima/migrations/20250108000000_add_completion_actions.sql
new file mode 100644
index 0000000..ba025cf
--- /dev/null
+++ b/makima/migrations/20250108000000_add_completion_actions.sql
@@ -0,0 +1,13 @@
+-- Add completion action fields to tasks table
+-- These control what happens when a task completes successfully
+
+-- Path to user's local repository (outside ~/.makima)
+-- Overrides daemon's default_target_repo if set
+ALTER TABLE tasks ADD COLUMN target_repo_path VARCHAR(512);
+
+-- Action to perform on completion: "none", "branch", "merge", or "pr"
+-- - branch: Push task branch to target repo (default)
+-- - merge: Auto-merge branch into target_branch in target repo
+-- - pr: Create GitHub pull request
+-- - none: Keep work in worktree only
+ALTER TABLE tasks ADD COLUMN completion_action VARCHAR(32) DEFAULT 'branch';