[ORB-248] updated migration to deal with migrating the version table data