beads/internal/storage/sqlite/migrations
Steve Yegge 47b86b35d8 feat: add gate issue type and CLI commands for async coordination (bd-udsi)
Add async gates - coordination primitives for agents to wait on external events
like CI completion, PR merges, timers, or human approval.

Changes:
- Add 'gate' issue type to types.go with gate-specific fields:
  - AwaitType: condition type (gh:run, gh:pr, timer, human, mail)
  - AwaitID: condition identifier
  - Timeout: max wait duration
  - Waiters: mail addresses to notify when gate clears
- Add SQLite migration 027_gate_columns for new fields
- Update all SQLite storage queries to handle gate fields
- Add bd gate commands: create, show, list, close, wait
- All commands support --json output and --no-daemon mode

Closes: bd-2v0f, bd-lz49, bd-u66e

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 12:06:42 -08:00
..
001_dirty_issues_table.go Extract SQLite migrations into separate files (bd-fb95094c.7) 2025-11-06 20:06:45 -08:00
002_external_ref_column.go Fix CI regressions and stabilize tests 2025-11-17 10:06:35 -07:00
003_composite_indexes.go Extract SQLite migrations into separate files (bd-fb95094c.7) 2025-11-06 20:06:45 -08:00
004_closed_at_constraint.go Extract SQLite migrations into separate files (bd-fb95094c.7) 2025-11-06 20:06:45 -08:00
005_compaction_columns.go Extract SQLite migrations into separate files (bd-fb95094c.7) 2025-11-06 20:06:45 -08:00
006_snapshots_table.go Extract SQLite migrations into separate files (bd-fb95094c.7) 2025-11-06 20:06:45 -08:00
007_compaction_config.go Extract SQLite migrations into separate files (bd-fb95094c.7) 2025-11-06 20:06:45 -08:00
008_compacted_at_commit_column.go Extract SQLite migrations into separate files (bd-fb95094c.7) 2025-11-06 20:06:45 -08:00
009_export_hashes_table.go Extract SQLite migrations into separate files (bd-fb95094c.7) 2025-11-06 20:06:45 -08:00
010_content_hash_column.go fix: prevent parallel execution migration race conditions (GH#720) 2025-12-23 00:55:05 -08:00
011_external_ref_unique.go Extract SQLite migrations into separate files (bd-fb95094c.7) 2025-11-06 20:06:45 -08:00
012_source_repo_column.go Extract SQLite migrations into separate files (bd-fb95094c.7) 2025-11-06 20:06:45 -08:00
013_repo_mtimes_table.go Extract SQLite migrations into separate files (bd-fb95094c.7) 2025-11-06 20:06:45 -08:00
014_child_counters_table.go Extract SQLite migrations into separate files (bd-fb95094c.7) 2025-11-06 20:06:45 -08:00
015_blocked_issues_cache.go Add blocked_issues_cache table for GetReadyWork optimization 2025-11-20 19:29:30 -05:00
016_orphan_detection.go fix: Exclude closed issues from orphan detection warnings 2025-12-17 23:32:37 -08:00
017_close_reason_column.go fix(db): add close_reason column to issues table (bd-uyu) 2025-12-01 21:56:41 -08:00
018_tombstone_columns.go feat(tombstone): implement delete-to-tombstone and TTL expiration (bd-3b4, bd-olt) 2025-12-05 16:20:43 -08:00
019_messaging_fields.go feat(schema): add messaging fields for bd-kwro epic 2025-12-16 13:06:47 -08:00
020_edge_consolidation.go Phase 1: Edge schema consolidation infrastructure (Decision 004) 2025-12-18 01:17:57 -08:00
021_migrate_edge_fields.go Phase 3: Migrate existing edge fields to dependencies (Decision 004) 2025-12-18 01:22:34 -08:00
022_drop_edge_columns.go fix: prevent parallel execution migration race conditions (GH#720) 2025-12-23 00:55:05 -08:00
023_pinned_column.go feat(storage): add pinned field to issues schema 2025-12-19 00:08:32 -08:00
024_is_template_column.go feat(types): add template molecules infrastructure for beads-1ra 2025-12-19 22:03:22 -08:00
025_remove_depends_on_fk.go fix: prevent parallel execution migration race conditions (GH#720) 2025-12-23 00:55:05 -08:00
026_additional_indexes.go feat: add performance optimization indexes (bd-bha9, bd-a9y3, bd-jke6, bd-8x3w, bd-lk39) 2025-12-22 23:16:08 -08:00
027_gate_columns.go feat: add gate issue type and CLI commands for async coordination (bd-udsi) 2025-12-23 12:06:42 -08:00