Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERREUR: la colonne vm_observations_mailles.annee n'existe pas #261

Open
jpm-cbna opened this issue Nov 14, 2020 · 1 comment
Open

ERREUR: la colonne vm_observations_mailles.annee n'existe pas #261

jpm-cbna opened this issue Nov 14, 2020 · 1 comment
Labels

Comments

@jpm-cbna
Copy link
Contributor

Le code SQL pour la VM atlas.vm_observations_mailles est différent dans les scripts data/update_vm_observations.sql et data/observations_mailles.sql.
Le champ annee n'est pas créé dans le code du script data/update_vm_observations.sql.

Du coup, si on suit la doc est que l'on exécute le script data/update_vm_observations.sql après avoir exécuter ./install_db.sh l'erreur suivante est générée:

Traceback (most recent call last):
  File "/home/jpm/workspace/geonature/web/geonature_atlas/venv/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1277, in _execute_context
    cursor, statement, parameters, context
  File "/home/jpm/workspace/geonature/web/geonature_atlas/venv/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 593, in do_execute
    cursor.execute(statement, parameters)
psycopg2.errors.UndefinedColumn: ERREUR:  la colonne vm_observations_mailles.annee n'existe pas
LINE 1: ...servations_mailles.id_observation) AS nb_obs, max(atlas.vm_o...
@jpm-cbna jpm-cbna added the bug label Nov 14, 2020
@camillemonchicourt
Copy link
Member

Oui on a créé le script update_vm_observations.sql tout en sachant qu'il y avait un risque à ne pas le maintenir correctement, en parallèle du script d'installation.
Selon moi il faut supprimer ce script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants