def METHOD_NAME(apps, schema_editor):
    DEPToken = apps.get_model("mdm", "DEPToken")
    for dep_token in DEPToken.objects.all():
        dep_token.private_key_str = encrypt(
            dep_token.private_key.tobytes(),
            field="private_key", pk=dep_token.pk, model="mdm.deptoken"
        )
        if dep_token.consumer_secret:
            dep_token.consumer_secret = encrypt_str(
                dep_token.consumer_secret,
                field="consumer_secret", pk=dep_token.pk, model="mdm.deptoken"
            )
        if dep_token.access_secret:
            dep_token.access_secret = encrypt_str(
                dep_token.access_secret,
                field="access_secret", pk=dep_token.pk, model="mdm.deptoken"
            )
        dep_token.save()