script to migrate mappings from repository