def METHOD_NAME(apps, schema_editor):
    Job = apps.get_model("api_app", "Job")
    for job in Job.objects.all():
        job.analyzers_requested = list(
            job.analyzers2_requested.all().values_list("name", flat=True)
        )
        job.analyzers_to_execute = list(
            job.analyzers2_to_execute.all().values_list("name", flat=True)
        )
        job.connectors_requested = list(
            job.connectors2_requested.all().values_list("name", flat=True)
        )
        job.connectors_to_execute = list(
            job.connectors2_to_execute.all().values_list("name", flat=True)
        )
        job.visualizers_to_execute = list(
            job.visualizers2_to_execute.all().values_list("name", flat=True)
        )
        job.playbooks_requested = list(
            job.playbooks2_requested.all().values_list("name", flat=True)
        )
        job.playbooks_to_execute = list(
            job.playbooks2_to_execute.all().values_list("name", flat=True)
        )
        job.full_clean()
        job.save()