from OSM_outils.OSMnx_recuperation_graph_information import OSMnx_recuperation_graph_information

def ajoute_donnees_nouvelle_colonne(apps, schema_editor):
    """
    Cette méthode permet de faire une migration de donnée pour la nouvelle colonne ajoutée

    """
    graph_viaire_ville_information = apps.get_model('recuperateur_reseau_viaire', 'Graph_viaire_ville_information')
    for graph in graph_viaire_ville_information.objects.all():
        G = OSMnx_recuperation_graph_information.lire_graphe(graph.gvvi_nom)
        graph.&&nom_variable&& = OSMnx_recuperation_graph_information.&&nom_méthode_recup_info&&(G)['&&nom_variable&&'] 
        graph.save()
