Steve Yegge
08e43d9fc7
feat(types): add tombstone support for inline soft-delete (bd-fbj)
Add tombstone types and schema migration as foundation for the tombstone
epic (bd-vw8) which replaces deletions.jsonl with inline tombstones.
Changes:
- Add tombstone fields to Issue struct: DeletedAt, DeletedBy, DeleteReason, OriginalType
- Add StatusTombstone constant and IsTombstone() helper method
- Update Status.IsValid() to accept tombstone status
- Create migration 018_tombstone_columns.go for new database columns
- Update schema.go with tombstone columns: deleted_at, deleted_by, delete_reason, original_type
- Update all issue insert/update/scan operations across:
- issues.go (insertIssue, insertIssues)
- queries.go (GetIssue, GetIssueByExternalRef, SearchIssues)
- dependencies.go (scanIssues, scanIssuesWithDependencyType)
- transaction.go (scanIssueRow, GetIssue, SearchIssues)
- multirepo.go (import operations)
- ready.go (GetReadyWork, GetStaleIssues)
- labels.go (GetIssuesByLabel)
- Add test for IsTombstone() helper
- Update migration test to include tombstone columns
Unblocks: bd-olt (TTL logic), bd-3b4 (delete command), bd-0ih (merge updates), bd-dve (import/export)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 15:29:42 -08:00
..
2025-12-05 15:29:42 -08:00
2025-11-21 14:40:22 -05:00
2025-11-27 21:45:42 -08:00
2025-11-28 23:19:21 -08:00
2025-11-23 19:53:44 -08:00
2025-11-23 19:35:52 -08:00
2025-12-02 22:41:07 -08:00
2025-11-24 14:03:11 -08:00
2025-11-21 11:40:37 -05:00
2025-12-02 22:41:07 -08:00
2025-11-23 19:53:44 -08:00
2025-12-02 22:41:07 -08:00
2025-11-28 23:19:21 -08:00
2025-12-02 22:41:07 -08:00
2025-12-05 15:29:42 -08:00
2025-11-24 00:59:49 -08:00
2025-11-23 10:57:29 -08:00
2025-11-20 21:57:23 -05:00
2025-11-21 11:40:37 -05:00
2025-11-27 21:45:42 -08:00
2025-12-05 15:29:42 -08:00
2025-12-05 15:29:42 -08:00
2025-12-05 15:29:42 -08:00
2025-12-05 15:29:42 -08:00
2025-12-05 13:22:09 -08:00
2025-11-29 22:07:52 -08:00
2025-12-05 15:29:42 -08:00
2025-11-20 21:57:23 -05:00
2025-12-05 15:29:42 -08:00
2025-11-30 00:37:12 -08:00
2025-12-05 15:29:42 -08:00
2025-11-21 11:40:37 -05:00
2025-12-05 15:29:42 -08:00
2025-11-20 21:57:23 -05:00
2025-11-23 19:04:34 -08:00
2025-11-30 17:28:02 -06:00
2025-11-20 21:57:23 -05:00
2025-11-24 20:45:04 -08:00
2025-12-05 15:29:42 -08:00
2025-11-20 21:57:23 -05:00
2025-11-24 01:10:16 -08:00
2025-11-24 22:21:55 -08:00
2025-11-28 23:19:21 -08:00
2025-11-28 23:19:21 -08:00