summaryrefslogtreecommitdiff
path: root/makima/migrations/20250125000000_add_completed_deliverables.sql
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-01-26 20:19:30 +0000
committersoryu <soryu@soryu.co>2026-01-26 20:19:30 +0000
commit04e1e8f0dd85d19917ac5ba0b73cba65ebac8976 (patch)
treee52537dd2a33c10156f1378ffdc6803bc983482d /makima/migrations/20250125000000_add_completed_deliverables.sql
parent6328477bc459eca0243b685553dbd75b925fdc8a (diff)
downloadsoryu-04e1e8f0dd85d19917ac5ba0b73cba65ebac8976.tar.gz
soryu-04e1e8f0dd85d19917ac5ba0b73cba65ebac8976.zip
Add completion phases
Diffstat (limited to 'makima/migrations/20250125000000_add_completed_deliverables.sql')
-rw-r--r--makima/migrations/20250125000000_add_completed_deliverables.sql8
1 files changed, 8 insertions, 0 deletions
diff --git a/makima/migrations/20250125000000_add_completed_deliverables.sql b/makima/migrations/20250125000000_add_completed_deliverables.sql
new file mode 100644
index 0000000..662a2bd
--- /dev/null
+++ b/makima/migrations/20250125000000_add_completed_deliverables.sql
@@ -0,0 +1,8 @@
+-- Add completed_deliverables column to track which phase deliverables have been marked complete
+-- Structure: { "plan": ["plan-document"], "execute": ["pull-request"] }
+
+ALTER TABLE contracts
+ADD COLUMN completed_deliverables JSONB NOT NULL DEFAULT '{}';
+
+-- Add index for efficient querying
+CREATE INDEX idx_contracts_completed_deliverables ON contracts USING gin (completed_deliverables);