Project

General

Profile

« Previous | Next » 

Revision 10245

bugfix: inputs/*/*/postprocess.sql: made all operations idempotent, so that postprocess.sql can be run repeatedly (e.g. by new-style import)

View differences:

postprocess.sql
1
CREATE INDEX ON :table ("dwc_terms_institutionCode");
1
SELECT util.search_path_append('util');
2 2

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

  
3 5
-- Remove institutions that we have direct data for
4 6
DELETE FROM :table
5 7
WHERE "dwc_terms_institutionCode" IN (

Also available in: Unified diff