优化
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user