making changes to linkages migration script