Revision 9845
Added by Aaron Marcuse-Kubitza over 11 years ago
inputs/GBIF/raw_occurrence_record_plants/postprocess.sql | ||
---|---|---|
1 | 1 |
SELECT util.search_path_append('util'); |
2 | 2 |
|
3 |
SELECT create_if_not_exists($$CREATE INDEX raw_occurrence_record_plants_institution_code ON raw_occurrence_record_plants ("institution_code")$$);
|
|
3 |
SELECT create_if_not_exists($$CREATE INDEX raw_occurrence_record_plants_institution_code ON raw_occurrence_record_plants ("specimenHolderInstitutions")$$);
|
|
4 | 4 |
|
5 | 5 |
-- Remove institutions that we have direct data for |
6 | 6 |
DELETE FROM :table |
7 |
WHERE institution_code IN (
|
|
7 |
WHERE "specimenHolderInstitutions" IN (
|
|
8 | 8 |
'ACAD' |
9 | 9 |
, 'ARIZ' |
10 | 10 |
, 'BRIT' |
Also available in: Unified diff
bugfix: inputs/GBIF/raw_occurrence_record_plants/postprocess.sql: updated column names to match the renamings in map.csv, which are now performed on the staging table itself