fix: Add missing updated_at column to epics table

epic_close was failing with "column updated_at does not exist".
Migration adds the column with default NOW() and backfills
existing rows from created_at.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Christian Gick
2026-01-10 09:48:08 +02:00
parent 99f5828f60
commit e12cccf718

View File

@@ -0,0 +1,7 @@
-- Migration 005: Add updated_at column to epics table
-- Fixes: epic_close error "column updated_at does not exist"
ALTER TABLE epics ADD COLUMN IF NOT EXISTS updated_at TIMESTAMP WITH TIME ZONE DEFAULT NOW();
-- Set existing rows to created_at value
UPDATE epics SET updated_at = created_at WHERE updated_at IS NULL;