Files
awoooi/apps/api/migrations/phase25_knowledge_enum_names.sql
Your Name 3a6acae408
Some checks failed
CD Pipeline / tests (push) Successful in 2m14s
Code Review / ai-code-review (push) Successful in 26s
run-migration / migrate (push) Failing after 24s
CD Pipeline / build-and-deploy (push) Has been cancelled
CD Pipeline / post-deploy-checks (push) Has been cancelled
fix(km): add phase25 knowledge enum labels
2026-05-01 11:03:03 +08:00

7 lines
333 B
SQL

-- Phase 25 Knowledge Auto-Harvesting enum compatibility
-- SQLAlchemy stores Enum names (AUTO_RUNBOOK / ANTI_PATTERN) for EntryType.
-- Older production DBs only had lowercase labels from the first migration.
ALTER TYPE entrytype ADD VALUE IF NOT EXISTS 'AUTO_RUNBOOK';
ALTER TYPE entrytype ADD VALUE IF NOT EXISTS 'ANTI_PATTERN';