Project

General

Profile

« Previous | Next » 

Revision 11521

inputs/VegBank/vegbank.~.clean_up.sql: taxoninterpretation.party_id: don't rename to taxoninterpretation_party_id, so that this can be used directly in taxonobservation_/create.sql with a USING join

View differences:

inputs/VegBank/taxonobservation_/header.csv
1
plantname_id,plantconcept_id,taxonobservation_id,observation_id,authorplantname,taxonobservation_reference_id,taxoninferencearea,emb_taxonobservation,int_origplantconcept_id,int_origplantscifull,int_origplantscinamenoauth,int_origplantcommon,int_origplantcode,int_currplantconcept_id,int_currplantscifull,int_currplantscinamenoauth,int_currplantcommon,int_currplantcode,taxonobservation_accessioncode,taxoninterpretation_id,stemlocation_id,taxoninterpretation_plantname_id,taxoninterpretation_party_id,role_id,interpretationtype,reference_id,originalinterpretation,currentinterpretation,taxonfit,taxonconfidence,collector_id,collectionnumber,museum_id,museumaccessionnumber,grouptype,notes,notespublic,notesmgt,revisions,interpretationdate,collectiondate,emb_taxoninterpretation,taxoninterpretation_accessioncode,*plantconcept_--plantconcept_reference_id,scientificName__for_nearest_taxon_concept,*plantconcept_--plantcode,*plantconcept_--plantdescription,*plantconcept_--d_obscount,*plantconcept_--d_currentaccepted,*plantconcept_--plantconcept_accessioncode,kingdom,*Subkingdom,*Superdivision,*Division,*Subdivision,class,*Subclass,order,family,genus,speciesBinomial,EQUIV#to:Species#Subspecies,EQUIV#to:Species#Variety,EQUIV#to:Species#Forma,plantname,plantname_reference_id,dateentered
1
plantname_id,plantconcept_id,taxonobservation_id,observation_id,authorplantname,taxonobservation_reference_id,taxoninferencearea,emb_taxonobservation,int_origplantconcept_id,int_origplantscifull,int_origplantscinamenoauth,int_origplantcommon,int_origplantcode,int_currplantconcept_id,int_currplantscifull,int_currplantscinamenoauth,int_currplantcommon,int_currplantcode,taxonobservation_accessioncode,taxoninterpretation_id,stemlocation_id,taxoninterpretation_plantname_id,party_id,role_id,interpretationtype,reference_id,originalinterpretation,currentinterpretation,taxonfit,taxonconfidence,collector_id,collectionnumber,museum_id,museumaccessionnumber,grouptype,notes,notespublic,notesmgt,revisions,interpretationdate,collectiondate,emb_taxoninterpretation,taxoninterpretation_accessioncode,*plantconcept_--plantconcept_reference_id,scientificName__for_nearest_taxon_concept,*plantconcept_--plantcode,*plantconcept_--plantdescription,*plantconcept_--d_obscount,*plantconcept_--d_currentaccepted,*plantconcept_--plantconcept_accessioncode,kingdom,*Subkingdom,*Superdivision,*Division,*Subdivision,class,*Subclass,order,family,genus,speciesBinomial,EQUIV#to:Species#Subspecies,EQUIV#to:Species#Variety,EQUIV#to:Species#Forma,plantname,plantname_reference_id,dateentered
inputs/VegBank/taxonobservation_/map.csv
21 21
taxoninterpretation_id,identificationID,,
22 22
stemlocation_id,*taxonobservation_--stemlocation_id,,
23 23
taxoninterpretation_plantname_id,*taxonobservation_--taxoninterpretation_plantname_id,,
24
taxoninterpretation_party_id,*taxonobservation_--taxoninterpretation_party_id,,
24
party_id,*taxonobservation_--party_id,,
25 25
role_id,*taxonobservation_--role_id,,
26 26
interpretationtype,identificationType,,
27 27
reference_id,*taxonobservation_--reference_id,,
inputs/VegBank/taxonobservation_/new_terms.csv
17 17
taxoninterpretation_id,identificationID,,
18 18
stemlocation_id,*taxonobservation_--stemlocation_id,,
19 19
taxoninterpretation_plantname_id,*taxonobservation_--taxoninterpretation_plantname_id,,
20
taxoninterpretation_party_id,*taxonobservation_--taxoninterpretation_party_id,,
20
party_id,*taxonobservation_--party_id,,
21 21
role_id,*taxonobservation_--role_id,,
22 22
reference_id,*taxonobservation_--reference_id,,
23 23
museum_id,*taxonobservation_--museum_id,,
inputs/VegBank/taxonobservation_/unmapped_terms.csv
8 8
identificationID
9 9
*taxonobservation_--stemlocation_id
10 10
*taxonobservation_--taxoninterpretation_plantname_id
11
*taxonobservation_--taxoninterpretation_party_id
11
*taxonobservation_--party_id
12 12
*taxonobservation_--role_id
13 13
*taxonobservation_--reference_id
14 14
identificationVerificationStatus
inputs/VegBank/vegbank.~.clean_up.sql
436 436
ALTER TABLE commconcept RENAME commname  TO commconcept__commname;
437 437
ALTER TABLE taxonobservation RENAME reference_id  TO taxonobservation_reference_id;
438 438
ALTER TABLE taxonobservation RENAME accessioncode  TO taxonobservation_accessioncode;
439
ALTER TABLE taxoninterpretation RENAME party_id  TO taxoninterpretation_party_id;
440 439
ALTER TABLE taxoninterpretation RENAME plantname_id  TO taxoninterpretation_plantname_id;
441 440
ALTER TABLE taxoninterpretation RENAME accessioncode  TO taxoninterpretation_accessioncode;
442 441
ALTER TABLE party RENAME d_obscount  TO party_d_obscount;

Also available in: Unified diff