This commit is contained in:
2026-11-04 12:21:59 +08:00
parent 78ecd2e039
commit 46bc137e99
53 changed files with 3508 additions and 1432 deletions
@@ -39,7 +39,7 @@ test('海外费用结构补齐先检查同名结构再修改,支持匹配结
const firstDdl = source.indexOf('ALTER TABLE ll_finance_fee_source')
assert.ok(firstDdl > 0)
const guards = source.slice(0, firstDdl)
for (const marker of ["DATABASE()<>'baiyue_lastleg'", 'reviewer_exists>0', 'inbound_exists>0', "TABLE_COLLATION='utf8mb4_unicode_ci'", "COLUMN_TYPE='decimal(24,12)'", "COLUMN_TYPE='datetime(3)'", "INDEX_NAME='PRIMARY'", "INDEX_NAME='idx_storage_rent_inbound_lot'"]) {
for (const marker of ["DATABASE()<>'baiyue_lastleg'", 'reviewer_exists>0', 'inbound_exists>0', "TABLE_COLLATION='utf8mb4_0900_ai_ci'", "COLUMN_TYPE='decimal(24,12)'", "COLUMN_TYPE='datetime(3)'", "INDEX_NAME='PRIMARY'", "INDEX_NAME='idx_storage_rent_inbound_lot'"]) {
assert.ok(guards.includes(marker), marker)
}
assert.match(guards, /SIGNAL SQLSTATE '45000'/)