From d623488d6b0421edddd598117e4b32a6282cf6d3 Mon Sep 17 00:00:00 2001 From: Steve Yegge Date: Fri, 26 Dec 2025 20:34:50 -0800 Subject: [PATCH] fix: add missing created_by column to migration 028 (GH#757) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Migration 028 (tombstone_closed_at) recreates the issues table but was missing the created_by column that exists in schema.go. This caused `SELECT * FROM issues` to fail with column count mismatch on fresh DBs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- internal/storage/sqlite/migrations/028_tombstone_closed_at.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/storage/sqlite/migrations/028_tombstone_closed_at.go b/internal/storage/sqlite/migrations/028_tombstone_closed_at.go index 2991bb8b..7b2eff4e 100644 --- a/internal/storage/sqlite/migrations/028_tombstone_closed_at.go +++ b/internal/storage/sqlite/migrations/028_tombstone_closed_at.go @@ -48,6 +48,7 @@ func MigrateTombstoneClosedAt(db *sql.DB) error { assignee TEXT, estimated_minutes INTEGER, created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, + created_by TEXT DEFAULT '', updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, closed_at DATETIME, external_ref TEXT,