chore(dmig): m0030 opp_reports加report_type列+FP成本params(商机P3可行性研究配套,pipeline-opportunity 4092304)
This commit is contained in:
parent
5207438b2e
commit
65c3befc90
35
deploy/migrations/m0030_opp_reports_report_type.json
Normal file
35
deploy/migrations/m0030_opp_reports_report_type.json
Normal file
@ -0,0 +1,35 @@
|
||||
{
|
||||
"id": "m0030",
|
||||
"title": "商机产线P3可行性研究: opp_reports加report_type列(research调研/feasibility可行性研究,默认research); 配套pipeline-opportunity opp_feasibility.py(八节模板+FP规则引擎+评分+立项门禁)",
|
||||
"backup_tables": ["opp_reports"],
|
||||
"up": [
|
||||
{
|
||||
"op": "sql",
|
||||
"sql": "ALTER TABLE opp_reports ADD COLUMN `report_type` VARCHAR(16) DEFAULT 'research' COMMENT '报告类型(research调研/feasibility可行性研究)'"
|
||||
},
|
||||
{
|
||||
"op": "params_set",
|
||||
"key": "opp_fp_pm_per_fp",
|
||||
"value": "0.05"
|
||||
},
|
||||
{
|
||||
"op": "params_set",
|
||||
"key": "opp_cost_wan_per_pm",
|
||||
"value": "3.0"
|
||||
}
|
||||
],
|
||||
"down": [
|
||||
{
|
||||
"op": "sql",
|
||||
"sql": "ALTER TABLE opp_reports DROP COLUMN `report_type`"
|
||||
},
|
||||
{
|
||||
"op": "params_del",
|
||||
"key": "opp_fp_pm_per_fp"
|
||||
},
|
||||
{
|
||||
"op": "params_del",
|
||||
"key": "opp_cost_wan_per_pm"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user