This commit is contained in:
2026-09-20 22:18:59 +08:00
parent 2bf3a1c8eb
commit 2aa80f08d0
12 changed files with 58 additions and 30 deletions
@@ -29,9 +29,9 @@ test('loading pick operation schemas accept whole-pallet dropship audits', () =>
const moduleSql = read('../../firstleg/src/main/resources/db/phase3-pda-convergence-schema.sql')
const unifiedSql = read('../../deploy/sql/头程数据库统一增量-MySQL8.sql')
for (const sql of [moduleSql, unifiedSql]) {
assert.match(sql, /chk_loading_pick_operation_action[\s\S]*?'PICK_PALLET'/)
assert.match(sql, /chk_loading_pick_operation_action[\s\S]*?(?:_utf8mb4)?'PICK_PALLET'/)
}
assert.equal((unifiedSql.match(/CHECK \(action_type IN \([^)]*'PICK_PALLET'[^)]*\)\)/g) || []).length, 2)
assert.equal((unifiedSql.match(/CHECK \(\(?action_type in \([^)]*(?:_utf8mb4)?'PICK_PALLET'[^)]*\)\)?\)/gi) || []).length, 1)
})
test('producer collector requires dropship FBA, standard FBA, OVERSEAS and a fourth distinct container', () => {