Files
ewoooc/migrations/016_playbooks_description_column.sql
ogt 47cfd79513 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>
2026-04-20 05:01:01 +08:00

12 lines
367 B
SQL

-- 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 $$;