[api] fix migration failure when updating directly from OBS 2.4, issue 648
[dist] add migration test during package build