def METHOD_NAME(apps: Apps, schema_editor: BaseDatabaseSchemaEditor):
    from authentik.providers.oauth2.models import JWTAlgorithms
    from authentik.providers.proxy.models import ProxyProvider
    db_alias = schema_editor.connection.alias
    try:
        for provider in ProxyProvider.objects.using(db_alias).filter(jwt_alg=JWTAlgorithms.RS256):
            provider.set_oauth_defaults()
            provider.save()
    except FieldError:
        # If the jwt_alg field doesn't exist, just ignore this migration
        pass