summaryrefslogblamecommitdiff
path: root/makima/migrations/20250108000000_add_completion_actions.sql
blob: ba025cfa4d09b1faeff69ec4a447f9f1be81a1f7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
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';