def METHOD_NAME(apps, schema_editor):
    Consent = apps.get_model("consents", "Consent")
    TermOption = apps.get_model("consents", "TermOption")
    term_slug = "may-publish-name"
    try:
        options = TermOption.objects.filter(term__slug=term_slug, archived_at=None)
        may_publish_name_github = [
            option
            for option in options
            if "only use my GitHub Handle" in option.content
        ][0]
        may_publish_name_profile = [
            option
            for option in options
            if "use the name associated with my profile" in option.content
        ][0]
        may_publish_name_orcid = [
            option
            for option in options
            if "use the name associated with my ORCID profile" in option.content
        ][0]
        may_publish_name_disagree = [
            option for option in options if option.option_type == DECLINE
        ][0]
    except IndexError:
        return
    for old_consent in Consent.objects.filter(
        term__slug=term_slug, archived_at=None
    ).select_related("person"):
        old_option = old_consent.person.lesson_publication_consent
        option: Optional[TermOption] = None
        if old_option == "yes-profile":
            option = may_publish_name_profile
        if old_option == "yes-orcid":
            option = may_publish_name_orcid
        if old_option == "yes-github":
            option = may_publish_name_github
        if old_option == "no":
            option = may_publish_name_disagree
        if option:
            reconsent(Consent, old_consent, option)