def METHOD_NAME(apps, schema_editor):
    ConnectorConfig = apps.get_model("connectors_manager", "ConnectorConfig")
    PluginConfig = apps.get_model("api_app", "PluginConfig")
    for config in ConnectorConfig.objects.all():
        config.params = {}
        config.secrets = {}
        for parameter in config.parameters.all():
            if parameter.is_secret:
                config.secrets[parameter.name] = {
                    "description": parameter.description,
                    "required": parameter.required,
                    "type": parameter.type,
                }
                try:
                    value = PluginConfig.objects.get(
                        plugin_name=config.name,
                        attribute=parameter.name,
                        config_type="2",
                        owner__isnull=True,
                        organization=None,
                        type="2",
                    )
                except PluginConfig.DoesNotExist:
                    ...
                else:
                    config.secrets[parameter.name]["default"] = value.value
                    value.delete()
            else:
                value = PluginConfig.objects.get(
                    plugin_name=config.name,
                    attribute=parameter.name,
                    config_type="1",
                    owner__isnull=True,
                    organization=None,
                    type="2",
                )
                config.params[parameter.name] = {
                    "default": value.value,
                    "type": parameter.type,
                    "description": parameter.description,
                }
                value.delete()
            config.full_clean()
            config.save()