Revision 3662
Added by Aaron Marcuse-Kubitza over 12 years ago
schemas/vegbien.sql | ||
---|---|---|
380 | 380 |
|
381 | 381 |
CREATE TABLE aggregateoccurrence ( |
382 | 382 |
aggregateoccurrence_id integer NOT NULL, |
383 |
datasource_id integer, |
|
383 |
datasource_id integer NOT NULL,
|
|
384 | 384 |
sourceaccessioncode text, |
385 | 385 |
taxonoccurrence_id integer NOT NULL, |
386 | 386 |
cover double precision, |
... | ... | |
1083 | 1083 |
|
1084 | 1084 |
CREATE TABLE locationevent ( |
1085 | 1085 |
locationevent_id integer NOT NULL, |
1086 |
datasource_id integer, |
|
1086 |
datasource_id integer NOT NULL,
|
|
1087 | 1087 |
sourceaccessioncode text, |
1088 | 1088 |
parent_id integer, |
1089 | 1089 |
location_id integer NOT NULL, |
... | ... | |
1981 | 1981 |
|
1982 | 1982 |
CREATE TABLE plantobservation ( |
1983 | 1983 |
plantobservation_id integer NOT NULL, |
1984 |
datasource_id integer, |
|
1984 |
datasource_id integer NOT NULL,
|
|
1985 | 1985 |
sourceaccessioncode text, |
1986 | 1986 |
overallheight double precision, |
1987 | 1987 |
overallheightaccuracy double precision, |
... | ... | |
2098 | 2098 |
|
2099 | 2099 |
CREATE TABLE project ( |
2100 | 2100 |
project_id integer NOT NULL, |
2101 |
datasource_id integer, |
|
2101 |
datasource_id integer NOT NULL,
|
|
2102 | 2102 |
sourceaccessioncode text, |
2103 | 2103 |
projectname text NOT NULL, |
2104 | 2104 |
projectdescription text, |
... | ... | |
2610 | 2610 |
|
2611 | 2611 |
CREATE TABLE taxonoccurrence ( |
2612 | 2612 |
taxonoccurrence_id integer NOT NULL, |
2613 |
datasource_id integer, |
|
2613 |
datasource_id integer NOT NULL,
|
|
2614 | 2614 |
sourceaccessioncode text, |
2615 | 2615 |
locationevent_id integer, |
2616 | 2616 |
verbatimcollectorname text, |
... | ... | |
2724 | 2724 |
|
2725 | 2725 |
CREATE TABLE stemobservation ( |
2726 | 2726 |
stemobservation_id integer NOT NULL, |
2727 |
datasource_id integer, |
|
2727 |
datasource_id integer NOT NULL,
|
|
2728 | 2728 |
sourceaccessioncode text, |
2729 | 2729 |
plantobservation_id integer NOT NULL, |
2730 | 2730 |
authorstemcode text, |
Also available in: Unified diff
schemas/vegbien.sql: Made datasource_id required on every table that has it, to trigger the automatic population of it by sql_io.put_table()'s col_defaults