This commit is contained in:
2026-10-21 14:30:41 +08:00
parent 0af977bdef
commit 40a03978cd
53 changed files with 1004 additions and 1291 deletions
@@ -35,9 +35,10 @@ test('one booking maps to exactly one commercial order and one actual incoming s
})
test('module and unified fresh baselines contain the exact same new table definitions', () => {
const module = read('lastleg-service/src/main/resources/db/lastleg.sql')
// 比较定义而不是文件换行;仍要求列、约束及表选项完全相同。
const module = read('lastleg-service/src/main/resources/db/lastleg.sql').replace(/\r\n/g, '\n')
for (const name of ['ll_fleet_capacity_offer', 'll_fleet_capacity_offer_command', 'll_fleet_pool_order_link']) {
const definition = table(overseas, 'baiyue_lastleg', name)
const definition = table(overseas, 'baiyue_lastleg', name).replace(/\r\n/g, '\n')
assert.ok(module.includes(definition), `${name}: module and unified contract drift`)
}
const sql = read('deploy/sql/migrations/overseas/baiyue_lastleg/V10__fleet_capacity_pool.sql')