Scrum4Me/prisma/migrations/20260502175000_add_task_repo_url/migration.sql
Janpeter Visser a754acf13b
feat(schema): Task.repo_url — cross-repo override for agent worktree (#54)
When a task targets a different repo than its parent product (e.g. an
MCP-server task tracked under the main product's PBI), product.repo_url
points to the wrong place. Result observed in story 'Verify-gate'
batch (2 May): agent's gate-task work failed to push because product
was Scrum4Me but the code lives in scrum4me-mcp.

Add optional `Task.repo_url` (TEXT, nullable). scrum4me-mcp's
`resolveRepoRoot` will read this in a follow-up PR — null falls back
to product.repo_url, preserving current behaviour for the 99% case.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 18:02:01 +02:00

4 lines
241 B
SQL

-- AlterTable: optional repo_url override on Task. Used when an MCP-server
-- task is tracked under a different product's PBI (cross-repo support).
-- Falls back to product.repo_url when NULL.
ALTER TABLE "tasks" ADD COLUMN "repo_url" TEXT;