[api] fix migration failure