def METHOD_NAME(apps, schema_editor):
    """From non inheritance to CustomBaseSetting inheritance"""
    CustomSetting = apps.get_model("tethys_apps", "customsetting")
    OldCustomSetting = apps.get_model("tethys_apps", "oldcustomsetting")
    db_alias = schema_editor.connection.alias
    for cs in OldCustomSetting.objects.using(db_alias).all():
        cs_child = CustomSetting.objects.create(
            tethys_app=cs.tethys_app,
            name=cs.name,
            description=cs.description,
            required=cs.required,
            type_custom_setting="SIMPLE",
            value=cs.value,
            default=cs.default,
            type=cs.type,
        )
        cs_child.save()