migrate: m0039→m0041 改名(sibling已占m0039/m0040,id冲突dmig台账会互斥)
This commit is contained in:
parent
d186b4ef0f
commit
7f961d0458
@ -1,7 +1,9 @@
|
||||
{
|
||||
"id": "m0039",
|
||||
"id": "m0041",
|
||||
"title": "修 pipeline_human_tasks.expired_at 创建即过期地雷(2026-09-18 银联事故实锤): 列 DDL 默认 current_timestamp() 而两处 create_human_task 均不显式写 → 实测全部历史待办 expired_at==created_at(创建瞬间过期)。本迁移①列默认改为 NOW()+7 天(MariaDB 10.6 支持表达式默认)②存量 pending 待办 expired_at 补为 created_at+7 天。代码侧两处 create_human_task 同步显式写 expired_at(双保险,不依赖列默认)",
|
||||
"backup_tables": ["pipeline_human_tasks"],
|
||||
"backup_tables": [
|
||||
"pipeline_human_tasks"
|
||||
],
|
||||
"up": [
|
||||
{
|
||||
"op": "sql",
|
||||
@ -18,4 +20,4 @@
|
||||
"sql": "ALTER TABLE pipeline_human_tasks MODIFY expired_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user