def execute(self):
        with model.Session() as session:
            for migration in self.config.migrations.values():
                query = migration.query
                src = migration.source
                dst = migration.destination
                objects = query.search(session, src)
                for src_obj in model.flatten_dependencies(objects):
                    for dst_obj in session.list(src_obj.get_class(), dst):
                        if src_obj.equals(dst_obj):
                            src_obj.link_to(dst_obj)
                            break
Saves new content to the file.
dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/cloudferry/lib/os/discovery/stages.py/LinkStage.execute--crossover with--dataset/ETHPy150Open benoitbryon/django-downloadview/django_downloadview/files.py/StorageFile.save