def signature(self):
        signature = {}
        with model.Session() as session:
            for name, migration in self.config.migrations.items():
                query = migration.query
                source = migration.source
                objects = query.search(session, source)
                src_ids = []
                for src_obj in model.flatten_dependencies(objects):
                    src_ids.append(src_obj.primary_key.id)
                signature[name] = sorted(src_ids)
        return signature
Return list of all IDs for each migration
dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/cloudferry/lib/os/discovery/stages.py/LinkStage.signature