fix(km): add phase25 knowledge enum labels
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
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
This commit is contained in:
6
apps/api/migrations/phase25_knowledge_enum_names.sql
Normal file
6
apps/api/migrations/phase25_knowledge_enum_names.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
-- 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';
|
||||
Reference in New Issue
Block a user