fix: Allow tombstones to retain closed_at timestamp
Previously, tombstones could not have a closed_at timestamp due to: 1. Go validation: `if status != closed && closed_at != nil` failed 2. SQL CHECK constraint: `(status = 'closed') = (closed_at IS NOT NULL)` This caused import failures for tombstones that were closed before being deleted - a valid scenario where we want to preserve the historical closed_at timestamp for audit purposes. Changes: - internal/types/types.go: Updated validation to allow tombstones with closed_at (line 253) - internal/storage/sqlite/schema.go: Updated CHECK constraint to allow closed AND tombstone statuses to have closed_at - internal/storage/sqlite/migrations/028_tombstone_closed_at.go: Migration to update existing databases with the new constraint - .beads/issues.jsonl: Fixed bd-6s61 status from 'closed' to 'tombstone' 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user