This commit is contained in:
2026-08-20 14:43:07 +08:00
parent 50d9803566
commit 6c7a670f1e
4 changed files with 13 additions and 6 deletions
@@ -42,6 +42,11 @@ test('三期权限迁移允许脚本历史版本写入的旧权限并在随后
assert.match(source, /SET permission_code='platform:firstleg:ocean-booking:view',status='INACTIVE',deleted=1/)
assert.match(source, /UPDATE iam_permission SET status='INACTIVE',deleted=1 WHERE id=5102141/)
assert.match(source, /DELETE FROM iam_permission WHERE id IN \(5102143,5102144,5102145\)/)
assert.ok(
source.indexOf('DELETE FROM iam_permission WHERE id IN (5102143,5102144,5102145)') <
source.indexOf('(5102147,0,\'PLATFORM\',\'BUTTON\',5102140,\'platform:firstleg:ocean-booking:edit\''),
'legacy ocean-booking edit permission must be removed before assigning the code to 5102147',
)
}
for (const source of [sql, truckAppointmentSchema]) {