pipeline-app/deploy/migrations/m0015_llm_model_drop_price_fields.json

43 lines
1.3 KiB
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": "m0015",
"title": "llm_model 删除价格/成本四字段(price_input/price_output/cost_input/cost_output)——定价统一走 ppid 定价平台,模型表不再存单价(2026-09-04 用户定夺)(原编号m0009与rag迁移撞号被静默覆盖从未执行,2026-09-09改号;测试库列已不存在,守卫将全skip)",
"backup_tables": [
"llm_model"
],
"up": [
{
"op": "sql",
"sql": "ALTER TABLE llm_model DROP COLUMN price_input"
},
{
"op": "sql",
"sql": "ALTER TABLE llm_model DROP COLUMN price_output"
},
{
"op": "sql",
"sql": "ALTER TABLE llm_model DROP COLUMN cost_input"
},
{
"op": "sql",
"sql": "ALTER TABLE llm_model DROP COLUMN cost_output"
}
],
"down": [
{
"op": "sql",
"sql": "ALTER TABLE llm_model ADD COLUMN price_input DECIMAL(12,6) NOT NULL DEFAULT 0 COMMENT '输入单价(元/千token)'"
},
{
"op": "sql",
"sql": "ALTER TABLE llm_model ADD COLUMN price_output DECIMAL(12,6) NOT NULL DEFAULT 0 COMMENT '输出单价(元/千token)'"
},
{
"op": "sql",
"sql": "ALTER TABLE llm_model ADD COLUMN cost_input DECIMAL(12,6) NOT NULL DEFAULT 0 COMMENT '输入成本(元/千token)'"
},
{
"op": "sql",
"sql": "ALTER TABLE llm_model ADD COLUMN cost_output DECIMAL(12,6) NOT NULL DEFAULT 0 COMMENT '输出成本(元/千token)'"
}
]
}