Submatter/plans/Plan-automation-foundation/Epic-connected-repos/Task-db-connected-repos-migration.md

24 lines
557 B
Markdown
Raw Normal View History

---
kind: task
slug: db-connected-repos-migration
title: Drizzle schema and migration for connected_repos
plan_slug: automation-foundation
epic_slug: connected-repos
status: done
priority: P1
tenant_id: global
owner: unassigned
cursor_todo_id: null
updated_at: "2026-07-07"
---
# Task summary
Workspace-scoped `connected_repos` table with forge metadata and env-var token reference.
## Acceptance criteria
- [x] Migration `0012` generated via `pnpm db:generate`
- [x] Unique constraint per workspace + api base + owner + repo
- [x] `workspace_id` index