fix: add Migration 016 — playbooks.description column missing from DB schema

Playbook SQLAlchemy model has description column but production DB table
does not, causing seed_playbooks() to fail with UndefinedColumn error.
ADD COLUMN IF NOT EXISTS is idempotent — safe to re-run.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
ogt
2026-04-20 05:01:01 +08:00
parent aef8982cbb
commit 47cfd79513

View File

@@ -0,0 +1,11 @@
-- Migration 016: Add missing description column to playbooks table
-- Fixes: sqlalchemy.exc.ProgrammingError on PlayBook seed (description column missing)
-- Author: Antigravity / ADR-013
ALTER TABLE playbooks
ADD COLUMN IF NOT EXISTS description TEXT;
DO $$
BEGIN
RAISE NOTICE '✅ Migration 016 完成 — playbooks.description 欄位已補齊';
END $$;