summaryrefslogtreecommitdiff
path: root/makima/migrations
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-01-26 18:19:03 +0000
committersoryu <soryu@soryu.co>2026-01-26 18:23:22 +0000
commit662090ea68323ebd7160941f8cb5c96145c3e9d4 (patch)
tree765bed992610870426f41042d47bc7782a5d9dad /makima/migrations
parentcb4f2fc40dbabb40de948512eee74c7e46264665 (diff)
downloadsoryu-662090ea68323ebd7160941f8cb5c96145c3e9d4.tar.gz
soryu-662090ea68323ebd7160941f8cb5c96145c3e9d4.zip
Add local_only flag to contracts database and models
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'makima/migrations')
-rw-r--r--makima/migrations/20260126000000_add_local_only_mode.sql7
1 files changed, 7 insertions, 0 deletions
diff --git a/makima/migrations/20260126000000_add_local_only_mode.sql b/makima/migrations/20260126000000_add_local_only_mode.sql
new file mode 100644
index 0000000..27af087
--- /dev/null
+++ b/makima/migrations/20260126000000_add_local_only_mode.sql
@@ -0,0 +1,7 @@
+-- Add local_only column to contracts
+ALTER TABLE contracts ADD COLUMN local_only BOOLEAN NOT NULL DEFAULT false;
+
+-- Index for filtering by local_only mode
+CREATE INDEX idx_contracts_local_only ON contracts(local_only) WHERE local_only = true;
+
+COMMENT ON COLUMN contracts.local_only IS 'When true, tasks do not auto-execute completion actions and work stays in worktrees';