- Remove task CRUD/epic/search/relation/version tools (moved to Jira) - Add migration scripts: migrate-tasks-to-jira, jira-admin, prepare-all-projects - Add consolidate-projects.ts for merging duplicate Jira projects - Add validate-migration.ts for post-migration integrity checks - Add jira_issue_key columns migration (030) - Consolidate 11 duplicate projects (LIT→LITE, CARD→CS, etc.) - Delete 92 placeholder issues, 11 empty source projects - Remove SG project completely - 2,798 tasks migrated across 46 Jira projects Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
10 lines
480 B
SQL
10 lines
480 B
SQL
-- Migration 030: Add jira_issue_key to sessions for Jira Cloud linking (CF-762)
|
|
-- Links sessions to Jira issues after task management moved to Jira Cloud
|
|
|
|
ALTER TABLE sessions ADD COLUMN IF NOT EXISTS jira_issue_key TEXT;
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_sessions_jira_issue_key ON sessions (jira_issue_key) WHERE jira_issue_key IS NOT NULL;
|
|
|
|
-- Also add to task_activity for historical audit trail linking
|
|
ALTER TABLE task_activity ADD COLUMN IF NOT EXISTS jira_issue_key TEXT;
|