Project

General

Profile

« Previous | Next » 

Revision 12879

mappings/VegCore.htm: regenerated from wiki: rename specimenHolderInstitutions to specimen_duplicate_institutions, as decided in the 2014-03-13 conference call (wiki.vegpath.org/2014-03-13_conference_call#schema-changes-2). note that most schema changes (such as this one) involve mappings changes, which are handled automatically by `inputs/run postprocess; yes|make inputs/{NVS,SALVIAS,TEAM}/test`.

View differences:

postprocess.sql
1 1
SELECT util.search_path_append('util');
2 2

  
3
SELECT create_if_not_exists($$CREATE INDEX "Specimen.acronym" ON $$||:table_str||$$ ("specimenHolderInstitutions")$$);
3
SELECT create_if_not_exists($$CREATE INDEX "Specimen.acronym" ON $$||:table_str||$$ ("specimen_duplicate_institutions")$$);
4 4

  
5 5
-- Remove institutions that we have direct data for
6 6
DELETE FROM :table
7
WHERE "specimenHolderInstitutions" IN (
7
WHERE "specimen_duplicate_institutions" IN (
8 8
      'MO'
9 9
    , 'NY'
10 10
)

Also available in: Unified diff