def METHOD_NAME(apps, schema_editor):
    PluginConfig = apps.get_model("api_app", "PluginConfig")
    AnalyzerConfig = apps.get_model("analyzers_manager", "AnalyzerConfig")
    ConnectorConfig = apps.get_model("connectors_manager", "ConnectorConfig")
    VisualizerConfig = apps.get_model("visualizers_manager", "VisualizerConfig")
    for plugin_config in PluginConfig.objects.all():
        plugin_config.for_organization = plugin_config.organization is not None
        if plugin_config.type == "1":
            class_ = AnalyzerConfig
        elif plugin_config.type == "2":
            class_ = ConnectorConfig
        elif plugin_config.type == "3":
            class_ = VisualizerConfig
        else:
            raise RuntimeError("Not configured")
        params = class_.objects.get(name=plugin_config.plugin_name).parameters
        plugin_config.parameter = params.get(name=plugin_config.attribute)
        plugin_config.full_clean()
        plugin_config.save()