Project

General

Profile

« Previous | Next » 

Revision 678

vegbien.sql: Added taxonbinmethod fields to aggregateoccurrence

View differences:

schemas/vegbien.for_ERD.my.sql
226 226
  sourceaccessioncode character varying(100),
227 227
  plantobservation_id int(11),
228 228
  stratum_id int(11),
229
  sizeclass_id int(11),
230
  coverindex_id int(11),
229 231
  CONSTRAINT aggregateoccurrence_pkey PRIMARY KEY (aggregateoccurrence_id ),
230 232
  CONSTRAINT aggregateoccurrence_plantobservation_id FOREIGN KEY (plantobservation_id)
231 233
      REFERENCES plantobservation (plantobservation_id) MATCH SIMPLE
232 234
      ON UPDATE CASCADE ON DELETE CASCADE,
235
  CONSTRAINT aggregateoccurrence_sizeclass_id FOREIGN KEY (sizeclass_id)
236
      REFERENCES sizeclass (sizeclass_id) MATCH SIMPLE
237
      ON UPDATE CASCADE ON DELETE CASCADE,
233 238
  CONSTRAINT aggregateoccurrence_stratum_id FOREIGN KEY (stratum_id)
234 239
      REFERENCES stratum (stratum_id) MATCH SIMPLE
235 240
      ON UPDATE CASCADE ON DELETE CASCADE,
schemas/vegbien.for_wiki.sql
60 60
  sourceaccessioncode character varying(100),
61 61
  plantobservation_id integer,
62 62
  stratum_id integer,
63
  sizeclass_id integer,
64
  coverindex_id integer,
63 65
);
64 66

  
65 67
CREATE TABLE plant -- A physical, tagged plant.
schemas/vegbien.for_ERD.sql
226 226
  sourceaccessioncode character varying(100),
227 227
  plantobservation_id integer,
228 228
  stratum_id integer,
229
  sizeclass_id integer,
230
  coverindex_id integer,
229 231
  CONSTRAINT aggregateoccurrence_pkey PRIMARY KEY (aggregateoccurrence_id ),
230 232
  CONSTRAINT aggregateoccurrence_plantobservation_id FOREIGN KEY (plantobservation_id)
231 233
      REFERENCES plantobservation (plantobservation_id) MATCH SIMPLE
232 234
      ON UPDATE CASCADE ON DELETE CASCADE,
235
  CONSTRAINT aggregateoccurrence_sizeclass_id FOREIGN KEY (sizeclass_id)
236
      REFERENCES sizeclass (sizeclass_id) MATCH SIMPLE
237
      ON UPDATE CASCADE ON DELETE CASCADE,
233 238
  CONSTRAINT aggregateoccurrence_stratum_id FOREIGN KEY (stratum_id)
234 239
      REFERENCES stratum (stratum_id) MATCH SIMPLE
235 240
      ON UPDATE CASCADE ON DELETE CASCADE,
schemas/vegbien.sql
91 91
    accessioncode character varying(255),
92 92
    sourceaccessioncode character varying(100),
93 93
    plantobservation_id integer,
94
    stratum_id integer
94
    stratum_id integer,
95
    sizeclass_id integer,
96
    coverindex_id integer
95 97
);
96 98

  
97 99

  
......
6069 6071

  
6070 6072

  
6071 6073
--
6074
-- Name: aggregateoccurrence_sizeclass_id; Type: FK CONSTRAINT; Schema: public; Owner: -
6075
--
6076

  
6077
ALTER TABLE ONLY aggregateoccurrence
6078
    ADD CONSTRAINT aggregateoccurrence_sizeclass_id FOREIGN KEY (sizeclass_id) REFERENCES sizeclass(sizeclass_id) ON UPDATE CASCADE ON DELETE CASCADE;
6079

  
6080

  
6081
--
6072 6082
-- Name: aggregateoccurrence_stratum_id; Type: FK CONSTRAINT; Schema: public; Owner: -
6073 6083
--
6074 6084

  

Also available in: Unified diff