Project

General

Profile

1 11841 aaronmk
-- Remove private data that should not be publicly visible
2
ALTER TABLE plot DROP COLUMN "realLatitude";
3
ALTER TABLE plot DROP COLUMN "realLongitude";
4
5 6759 aaronmk
-- Ensure column names have the same capitalization everywhere
6
ALTER TABLE "stemCount" RENAME "TAXONIMPORTANCE_ID" TO "taxonImportance_ID";
7
8 6742 aaronmk
-- Prevent "column name specified more than once" errors when tables are joined
9 11815 aaronmk
ALTER TABLE "commClass" RENAME "commName" TO "commClass--commName";
10
ALTER TABLE "commClass" RENAME "commLevel" TO "commClass--commLevel";
11
ALTER TABLE "commClass" RENAME "accessionCode" TO "commClass--accessionCode";
12 11813 aaronmk
ALTER TABLE "commClass" RENAME "dba_src_ID" TO "commClass--dba_src_ID";
13 11815 aaronmk
ALTER TABLE "commConcept" RENAME "dba_src_ID" TO "commConcept--dba_src_ID";
14 11955 aaronmk
ALTER TABLE "observationContributor" RENAME "dba_src_ID" TO "observationContributor--dba_src_ID";
15
ALTER TABLE "plantConcept" RENAME "reference_ID" TO "plantConcept_reference_ID";
16
ALTER TABLE "plantConcept" RENAME "accessionCode" TO "plantConcept_accessionCode";
17
ALTER TABLE "plantConcept" RENAME "dba_src_ID" TO "plantConcept_dba_src_ID";
18
ALTER TABLE "plantConcept" RENAME "entry_sppID" TO "plantConcept_entry_sppID";
19 6742 aaronmk
ALTER TABLE "soilObs" RENAME "dba_src_ID" TO "soilObs_dba_src_ID";
20 6759 aaronmk
ALTER TABLE "stemCount" RENAME "dba_src_ID" TO "stemCount_dba_src_ID";
21
ALTER TABLE "stemCount" RENAME "entry_herbLineID" TO "stemCount_entry_herbLineID";
22
ALTER TABLE "stemCount" RENAME "entry_treeLineID" TO "stemCount_entry_treeLineID";
23 6761 aaronmk
ALTER TABLE "stemCount" RENAME "entry_sortOrder" TO "stemCount_entry_sortOrder";
24
ALTER TABLE "stemLocation" RENAME "entry_sortOrder" TO "stemLocation_entry_sortOrder";
25 11955 aaronmk
ALTER TABLE "taxonImportance" RENAME "dba_src_ID" TO "taxonImportance_dba_src_ID";
26
ALTER TABLE "taxonImportance" RENAME "entry_herbLineID" TO "taxonImportance_entry_herbLineID";
27
ALTER TABLE "taxonImportance" RENAME "entry_treeLineID" TO "taxonImportance_entry_treeLineID";
28 6742 aaronmk
ALTER TABLE "taxonInterpretation" RENAME "PLANTNAME_ID" TO "taxonInterpretation_PLANTNAME_ID";
29
ALTER TABLE "taxonInterpretation" RENAME "dba_src_ID" TO "taxonInterpretation_dba_src_ID";
30
ALTER TABLE "taxonInterpretation" RENAME "accessionCode" TO "taxonInterpretation_accessionCode";
31 11955 aaronmk
ALTER TABLE "taxonObservation" RENAME "reference_ID" TO "taxonObservation_reference_ID";
32
ALTER TABLE "taxonObservation" RENAME "accessionCode" TO "taxonObservation_accessionCode";
33
ALTER TABLE "taxonObservation" RENAME "dba_src_ID" TO "taxonObservation_dba_src_ID";
34
ALTER TABLE "taxonObservation" RENAME "entry_sppID" TO "taxonObservation_entry_sppID";