fix(db): 按生产已应用顺序重排 120-125 迁移

生产已按 120-123 应用履约路由四支迁移,dev 新增的付款金额审计与价格历史顺延为 124-125,避免 node-pg-migrate checkOrder 报 Not run migration;同步更新部署清单与历史迁移测试路径。
This commit is contained in:
2026-11-03 11:14:06 +08:00
parent 980cf68915
commit f447b5d73a
8 changed files with 28 additions and 22 deletions
@@ -7,7 +7,7 @@ function read(relativeUrl: string) {
}
test('价格历史迁移建表、建索引并回填 payment_amount_updated 事件', async () => {
const sql = await read('../../db/migrations/121_work_order_payment_amount_history.sql')
const sql = await read('../../db/migrations/125_work_order_payment_amount_history.sql')
assert.ok(sql.includes('CREATE TABLE IF NOT EXISTS work_order_payment_amount_history'))
assert.ok(sql.includes('idx_work_order_payment_amount_history_order'))
assert.ok(sql.includes("e.event_type = 'payment_amount_updated'"))