Project

General

Profile

1 6759 aaronmk
-- Ensure column names have the same capitalization everywhere
2
ALTER TABLE "stemCount" RENAME "TAXONIMPORTANCE_ID" TO "taxonImportance_ID";
3
4 6742 aaronmk
-- Prevent "column name specified more than once" errors when tables are joined
5 11811 aaronmk
ALTER TABLE "observationContributor" RENAME "dba_src_ID" TO "observationContributor--dba_src_ID";
6 6742 aaronmk
ALTER TABLE "soilObs" RENAME "dba_src_ID" TO "soilObs_dba_src_ID";
7
ALTER TABLE "taxonObservation" RENAME "reference_ID" TO "taxonObservation_reference_ID";
8
ALTER TABLE "taxonObservation" RENAME "accessionCode" TO "taxonObservation_accessionCode";
9
ALTER TABLE "taxonObservation" RENAME "dba_src_ID" TO "taxonObservation_dba_src_ID";
10
ALTER TABLE "taxonObservation" RENAME "entry_sppID" TO "taxonObservation_entry_sppID";
11 6759 aaronmk
ALTER TABLE "taxonImportance" RENAME "dba_src_ID" TO "taxonImportance_dba_src_ID";
12
ALTER TABLE "taxonImportance" RENAME "entry_herbLineID" TO "taxonImportance_entry_herbLineID";
13
ALTER TABLE "taxonImportance" RENAME "entry_treeLineID" TO "taxonImportance_entry_treeLineID";
14
ALTER TABLE "stemCount" RENAME "dba_src_ID" TO "stemCount_dba_src_ID";
15
ALTER TABLE "stemCount" RENAME "entry_herbLineID" TO "stemCount_entry_herbLineID";
16
ALTER TABLE "stemCount" RENAME "entry_treeLineID" TO "stemCount_entry_treeLineID";
17 6761 aaronmk
ALTER TABLE "stemCount" RENAME "entry_sortOrder" TO "stemCount_entry_sortOrder";
18
ALTER TABLE "stemLocation" RENAME "entry_sortOrder" TO "stemLocation_entry_sortOrder";
19 6742 aaronmk
ALTER TABLE "taxonInterpretation" RENAME "PLANTNAME_ID" TO "taxonInterpretation_PLANTNAME_ID";
20
ALTER TABLE "taxonInterpretation" RENAME "dba_src_ID" TO "taxonInterpretation_dba_src_ID";
21
ALTER TABLE "taxonInterpretation" RENAME "accessionCode" TO "taxonInterpretation_accessionCode";
22
ALTER TABLE "plantConcept" RENAME "reference_ID" TO "plantConcept_reference_ID";
23
ALTER TABLE "plantConcept" RENAME "accessionCode" TO "plantConcept_accessionCode";
24
ALTER TABLE "plantConcept" RENAME "dba_src_ID" TO "plantConcept_dba_src_ID";
25
ALTER TABLE "plantConcept" RENAME "entry_sppID" TO "plantConcept_entry_sppID";