Giter Club home page Giter Club logo

Comments (2)

camillemonchicourt avatar camillemonchicourt commented on July 22, 2024

OK, alors il y avait eu des premières discussions sur le sujet ici : #2339
Dans la 1.12.0 de TaxHub d'aout 2023, on a basculé la gestion de la version de Taxref au niveau du schéma taxonomie où cela a bien plus de sens et est mis à jour automatiquement quand on met à jour Taxref : PnX-SI/TaxHub#394

Suite à cela il était souhaité de supprimer le paramètre gn_commons.t_parameters.taxref_version, qui n'est plus utile, redondante et était rarement à jour.

Faut-il aussi supprimer les champs meta_v_taxref dans la foulée ? A priori oui, en suivant les indications de la dernière version du référentiel SINP Occurrences de taxons.

from geonature.

vprunet avatar vprunet commented on July 22, 2024

En attendant qu'une décision soit prise sur ce champ meta_v_taxref, j'ai temporairement corrigé mon instance ainsi

-- correction version taxref dans gn_commons.t_parameters
UPDATE gn_commons.t_parameters
        SET parameter_value='Taxref V17.0'
        WHERE parameter_name= 'taxref_version';

-- correction de la valeur par défaut pour un taxon saisi dans occtax
ALTER TABLE pr_occtax.t_occurrences_occtax ALTER COLUMN meta_v_taxref 
SET DEFAULT gn_commons.get_default_parameter('taxref_version', NULL);

-- mise à jour des saisies occtax (à exécuter de temps à autres, ou alors écrire un trigger sur insertion).
update pr_occtax.t_occurrences_occtax
        set meta_v_taxref = DEFAULT
        where meta_v_taxref is null;

-- la synthèse est mise à jour automatiquement.

from geonature.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.