-- Ensure column names have the same capitalization everywhere ALTER TABLE "stemCount" RENAME "TAXONIMPORTANCE_ID" TO "taxonImportance_ID"; -- Prevent "column name specified more than once" errors when tables are joined ALTER TABLE "soilObs" RENAME "dba_src_ID" TO "soilObs_dba_src_ID"; ALTER TABLE "taxonObservation" RENAME "reference_ID" TO "taxonObservation_reference_ID"; ALTER TABLE "taxonObservation" RENAME "accessionCode" TO "taxonObservation_accessionCode"; ALTER TABLE "taxonObservation" RENAME "dba_src_ID" TO "taxonObservation_dba_src_ID"; ALTER TABLE "taxonObservation" RENAME "entry_sppID" TO "taxonObservation_entry_sppID"; ALTER TABLE "taxonImportance" RENAME "dba_src_ID" TO "taxonImportance_dba_src_ID"; ALTER TABLE "taxonImportance" RENAME "entry_herbLineID" TO "taxonImportance_entry_herbLineID"; ALTER TABLE "taxonImportance" RENAME "entry_treeLineID" TO "taxonImportance_entry_treeLineID"; ALTER TABLE "stemCount" RENAME "dba_src_ID" TO "stemCount_dba_src_ID"; ALTER TABLE "stemCount" RENAME "entry_herbLineID" TO "stemCount_entry_herbLineID"; ALTER TABLE "stemCount" RENAME "entry_treeLineID" TO "stemCount_entry_treeLineID"; ALTER TABLE "stemCount" RENAME "entry_sortOrder" TO "stemCount_entry_sortOrder"; ALTER TABLE "stemLocation" RENAME "entry_sortOrder" TO "stemLocation_entry_sortOrder"; ALTER TABLE "taxonInterpretation" RENAME "PARTY_ID" TO "taxonInterpretation_PARTY_ID"; ALTER TABLE "taxonInterpretation" RENAME "PLANTNAME_ID" TO "taxonInterpretation_PLANTNAME_ID"; ALTER TABLE "taxonInterpretation" RENAME "dba_src_ID" TO "taxonInterpretation_dba_src_ID"; ALTER TABLE "taxonInterpretation" RENAME "accessionCode" TO "taxonInterpretation_accessionCode"; ALTER TABLE "plantConcept" RENAME "reference_ID" TO "plantConcept_reference_ID"; ALTER TABLE "plantConcept" RENAME "accessionCode" TO "plantConcept_accessionCode"; ALTER TABLE "plantConcept" RENAME "dba_src_ID" TO "plantConcept_dba_src_ID"; ALTER TABLE "plantConcept" RENAME "entry_sppID" TO "plantConcept_entry_sppID";