def METHOD_NAME(apps, schema_editor):
    AttributeValueTranslation = apps.get_model("attribute", "AttributeValueTranslation")
    queryset = (
        AttributeValueTranslation.objects.exclude(rich_text=None)
        .filter(name="")
        .order_by("pk")
    )
    for batch_pks in queryset_in_batches(queryset):
        batch = AttributeValueTranslation.objects.filter(pk__in=batch_pks)
        instances = []
        for instance in batch:
            instance.name = truncatechars(
                clean_editor_js(instance.rich_text, to_string=True), 100
            )
            instances.append(instance)
        AttributeValueTranslation.objects.bulk_update(instances, ["name"])