adds data migration for creating related legs of legacy data