finish pending migration