

def main(dry_run=True):
    legacy_objs = find_legacy_objs()
    logger.info('Migrating {0} `OsfGuidFile` objects'.format(legacy_objs.count()))
    if dry_run:
        return
    for legacy_obj in legacy_objs:
        with TokuTransaction():
            migrate_legacy_obj(legacy_obj)

dataset/ETHPy150Open CenterForOpenScience/osf.io/scripts/osfstorage/migrate_guids.py main/original