pipeline-app/deploy/migrations/m0010_llm_usages_vendor_protocol.json

26 lines
791 B
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"id": "m0010",
"title": "llm_usage 补 usages 列非token用量因子+ llm_vendor 删 protocol 列模式归模型适配模板2026-09-05 用户定夺)",
"backup_tables": ["llm_usage", "llm_vendor"],
"up": [
{
"op": "sql",
"sql": "ALTER TABLE llm_usage ADD COLUMN usages TEXT COMMENT '非token用量因子JSON(时长/分辨率等,异步出账读入定价引擎)' AFTER status"
},
{
"op": "sql",
"sql": "ALTER TABLE llm_vendor DROP COLUMN protocol"
}
],
"down": [
{
"op": "sql",
"sql": "ALTER TABLE llm_usage DROP COLUMN usages"
},
{
"op": "sql",
"sql": "ALTER TABLE llm_vendor ADD COLUMN protocol VARCHAR(20) NOT NULL DEFAULT 'openai_compat' COMMENT '协议类型' AFTER name"
}
]
}