def METHOD_NAME(apps, schema_editor):
    DEPEnrollment = apps.get_model("mdm", "DEPEnrollment")
    legacy_scep_config_name = "Legacy Zentral MDM"
    for dep_enrollment in DEPEnrollment.objects.all():
        if dep_enrollment.scep_config.name == legacy_scep_config_name:
            dep_enrollment.scep_verification = True
            dep_enrollment.save()
    OTAEnrollment = apps.get_model("mdm", "OTAEnrollment")
    for ota_enrollment in OTAEnrollment.objects.all():
        if ota_enrollment.scep_config.name == legacy_scep_config_name:
            ota_enrollment.scep_verification = True
            ota_enrollment.save()
    UserEnrollment = apps.get_model("mdm", "UserEnrollment")
    for user_enrollment in UserEnrollment.objects.all():
        if user_enrollment.scep_config.name == legacy_scep_config_name:
            user_enrollment.scep_verification = True
            user_enrollment.save()