Project

General

Profile

« Previous | Next » 

Revision 6533

schemas/vegbien.sql: Removed no longer needed darwin_core table. Use analytical_stem instead, which is now identical.

View differences:

vegbien.my.sql
409 409

  
410 410

  
411 411
--
412
-- Name: sync_darwin_core_to_view(); Type: FUNCTION; Schema: public; Owner: -
413
--
414

  
415

  
416

  
417

  
418
--
419 412
-- Name: sync_geoscrub_input_to_view(); Type: FUNCTION; Schema: public; Owner: -
420 413
--
421 414

  
......
1982 1975

  
1983 1976

  
1984 1977
--
1985
-- Name: darwin_core; Type: TABLE; Schema: public; Owner: -; Tablespace: 
1986
--
1987

  
1988
CREATE TABLE darwin_core (
1989
    `institutionCode` varchar(255),
1990
    `subInstitutionCode` varchar(255),
1991
    `collectionCode` varchar(255),
1992
    `catalogNumber` varchar(255),
1993
    `occurrenceID` varchar(255),
1994
    country varchar(255),
1995
    `stateProvince` varchar(255),
1996
    county varchar(255),
1997
    `decimalLatitude` double precision,
1998
    `decimalLongitude` double precision,
1999
    `coordinateUncertaintyInMeters` double precision,
2000
    geovalid int(1),
2001
    `isNewWorld` int(1),
2002
    `projectID` int(11),
2003
    `plotName` varchar(255),
2004
    `elevationInMeters` double precision,
2005
    `plotArea_ha` double precision,
2006
    `samplingProtocol` varchar(255),
2007
    `dateCollected` date,
2008
    `higherPlantGroup` varchar(255),
2009
    family varchar(255),
2010
    genus varchar(255),
2011
    `speciesBinomial` varchar(255),
2012
    `scientificName` varchar(255),
2013
    `scientificNameAuthorship` varchar(255),
2014
    `speciesBinomialWithMorphospecies` varchar(255),
2015
    `scientificNameWithMorphospecies` varchar(255),
2016
    threatened int(1),
2017
    `identifiedBy` varchar(255),
2018
    `growthForm` varchar(255),
2019
    cultivated int(1),
2020
    `cultivatedBasis` varchar(255),
2021
    `recordedBy` varchar(255),
2022
    `recordNumber` varchar(255),
2023
    `coverPercent` double precision,
2024
    `diameterBreastHeight_cm` double precision,
2025
    height_m double precision,
2026
    tag varchar(255),
2027
    `organismX_m` double precision,
2028
    `organismY_m` double precision,
2029
    `taxonOccurrenceID` varchar(255),
2030
    `authorTaxonCode` varchar(255),
2031
    `individualID` varchar(255),
2032
    `authorStemCode` varchar(255)
2033
);
2034

  
2035

  
2036
--
2037
-- Name: darwin_core_view; Type: VIEW; Schema: public; Owner: -
2038
--
2039

  
2040

  
2041

  
2042

  
2043
--
2044 1978
-- Name: dba_preassignacccode_dba_requestnumber_seq; Type: SEQUENCE; Schema: public; Owner: -
2045 1979
--
2046 1980

  
......
4022 3956

  
4023 3957

  
4024 3958
--
4025
-- Data for Name: darwin_core; Type: TABLE DATA; Schema: public; Owner: -
4026
--
4027

  
4028

  
4029

  
4030
--
4031 3959
-- Data for Name: definedvalue; Type: TABLE DATA; Schema: public; Owner: -
4032 3960
--
4033 3961

  
......
5032 4960

  
5033 4961

  
5034 4962
--
5035
-- Name: darwin_core_institutionCode_catalogNumber_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
5036
--
5037

  
5038
CREATE INDEX `darwin_core_institutionCode_catalogNumber_idx` ON darwin_core  (`institutionCode`, `catalogNumber`);
5039

  
5040

  
5041
--
5042
-- Name: darwin_core_institutionCode_occurrenceID_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
5043
--
5044

  
5045
CREATE INDEX `darwin_core_institutionCode_occurrenceID_idx` ON darwin_core  (`institutionCode`, `occurrenceID`);
5046

  
5047

  
5048
--
5049
-- Name: darwin_core_institutionCode_projectID_plotName_dateCollecte_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
5050
--
5051

  
5052
CREATE INDEX `darwin_core_institutionCode_projectID_plotName_dateCollecte_idx` ON darwin_core  (`institutionCode`, `projectID`, `plotName`, `dateCollected`);
5053

  
5054

  
5055
--
5056
-- Name: darwin_core_institutionCode_subInstitutionCode_collectionCo_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
5057
--
5058

  
5059
CREATE INDEX `darwin_core_institutionCode_subInstitutionCode_collectionCo_idx` ON darwin_core  (`institutionCode`, `subInstitutionCode`, `collectionCode`, `catalogNumber`);
5060

  
5061

  
5062
--
5063 4963
-- Name: graphic_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
5064 4964
--
5065 4965

  

Also available in: Unified diff