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