Revision 14930
Added by Aaron Marcuse-Kubitza about 10 years ago
trunk/schemas/vegbien.my.sql | ||
---|---|---|
4400 | 4400 |
|
4401 | 4401 |
|
4402 | 4402 |
-- |
4403 |
-- Name: 2014-3-11.Jeff_Ott.climatic_range_determinants; Type: VIEW; Schema: public; Owner: - |
|
4404 |
-- |
|
4405 |
|
|
4406 |
|
|
4407 |
|
|
4408 |
|
|
4409 |
-- |
|
4410 |
-- Name: 2014-6-12.Jeff_Ott.climatic_range_determinants; Type: VIEW; Schema: public; Owner: - |
|
4411 |
-- |
|
4412 |
|
|
4413 |
|
|
4414 |
|
|
4415 |
|
|
4416 |
-- |
|
4417 |
-- Name: iucn_red_list; Type: TABLE; Schema: public; Owner: -; Tablespace: |
|
4418 |
-- |
|
4419 |
|
|
4420 |
CREATE TABLE iucn_red_list ( |
|
4421 |
accepted_family varchar(255) NOT NULL, |
|
4422 |
accepted_species_binomial varchar(255) NOT NULL |
|
4423 |
); |
|
4424 |
|
|
4425 |
|
|
4426 |
-- |
|
4427 |
-- Name: TABLE iucn_red_list; Type: COMMENT; Schema: public; Owner: - |
|
4428 |
-- |
|
4429 |
|
|
4430 |
|
|
4431 |
|
|
4432 |
|
|
4433 |
-- |
|
4434 | 4403 |
-- Name: source; Type: TABLE; Schema: public; Owner: -; Tablespace: |
4435 | 4404 |
-- |
4436 | 4405 |
|
... | ... | |
4474 | 4443 |
|
4475 | 4444 |
|
4476 | 4445 |
-- |
4446 |
-- Name: 2014-10-18.Juergen_Dengler.sPlot; Type: VIEW; Schema: public; Owner: - |
|
4447 |
-- |
|
4448 |
|
|
4449 |
|
|
4450 |
|
|
4451 |
|
|
4452 |
-- |
|
4453 |
-- Name: 2014-3-11.Jeff_Ott.climatic_range_determinants; Type: VIEW; Schema: public; Owner: - |
|
4454 |
-- |
|
4455 |
|
|
4456 |
|
|
4457 |
|
|
4458 |
|
|
4459 |
-- |
|
4460 |
-- Name: 2014-6-12.Jeff_Ott.climatic_range_determinants; Type: VIEW; Schema: public; Owner: - |
|
4461 |
-- |
|
4462 |
|
|
4463 |
|
|
4464 |
|
|
4465 |
|
|
4466 |
-- |
|
4467 |
-- Name: iucn_red_list; Type: TABLE; Schema: public; Owner: -; Tablespace: |
|
4468 |
-- |
|
4469 |
|
|
4470 |
CREATE TABLE iucn_red_list ( |
|
4471 |
accepted_family varchar(255) NOT NULL, |
|
4472 |
accepted_species_binomial varchar(255) NOT NULL |
|
4473 |
); |
|
4474 |
|
|
4475 |
|
|
4476 |
-- |
|
4477 |
-- Name: TABLE iucn_red_list; Type: COMMENT; Schema: public; Owner: - |
|
4478 |
-- |
|
4479 |
|
|
4480 |
|
|
4481 |
|
|
4482 |
|
|
4483 |
-- |
|
4477 | 4484 |
-- Name: 2014-6-4.Iara_Lacher.reserve_prioritization; Type: VIEW; Schema: public; Owner: - |
4478 | 4485 |
-- |
4479 | 4486 |
|
... | ... | |
15082 | 15089 |
|
15083 | 15090 |
|
15084 | 15091 |
-- |
15085 |
-- Name: 2014-3-11.Jeff_Ott.climatic_range_determinants; Type: ACL; Schema: public; Owner: -
|
|
15092 |
-- Name: source; Type: ACL; Schema: public; Owner: -
|
|
15086 | 15093 |
-- |
15087 | 15094 |
|
15088 | 15095 |
|
... | ... | |
15091 | 15098 |
|
15092 | 15099 |
|
15093 | 15100 |
|
15101 |
|
|
15094 | 15102 |
-- |
15095 |
-- Name: 2014-6-12.Jeff_Ott.climatic_range_determinants; Type: ACL; Schema: public; Owner: -
|
|
15103 |
-- Name: 2014-10-18.Juergen_Dengler.sPlot; Type: ACL; Schema: public; Owner: -
|
|
15096 | 15104 |
-- |
15097 | 15105 |
|
15098 | 15106 |
|
... | ... | |
15102 | 15110 |
|
15103 | 15111 |
|
15104 | 15112 |
-- |
15105 |
-- Name: source; Type: ACL; Schema: public; Owner: -
|
|
15113 |
-- Name: 2014-3-11.Jeff_Ott.climatic_range_determinants; Type: ACL; Schema: public; Owner: -
|
|
15106 | 15114 |
-- |
15107 | 15115 |
|
15108 | 15116 |
|
... | ... | |
15111 | 15119 |
|
15112 | 15120 |
|
15113 | 15121 |
|
15122 |
-- |
|
15123 |
-- Name: 2014-6-12.Jeff_Ott.climatic_range_determinants; Type: ACL; Schema: public; Owner: - |
|
15124 |
-- |
|
15114 | 15125 |
|
15126 |
|
|
15127 |
|
|
15128 |
|
|
15129 |
|
|
15130 |
|
|
15131 |
|
|
15115 | 15132 |
-- |
15116 | 15133 |
-- Name: 2014-6-4.Iara_Lacher.reserve_prioritization; Type: ACL; Schema: public; Owner: - |
15117 | 15134 |
-- |
trunk/schemas/public_.sql | ||
---|---|---|
7016 | 7016 |
|
7017 | 7017 |
|
7018 | 7018 |
-- |
7019 |
-- Name: source; Type: TABLE; Schema: public; Owner: -; Tablespace: |
|
7020 |
-- |
|
7021 |
|
|
7022 |
CREATE TABLE source ( |
|
7023 |
source_id integer NOT NULL, |
|
7024 |
matched_source_id integer, |
|
7025 |
parent_id integer, |
|
7026 |
shortname text NOT NULL, |
|
7027 |
citation text, |
|
7028 |
sourcetype sourcetype, |
|
7029 |
accesslevel accesslevel, |
|
7030 |
accessconditions text, |
|
7031 |
observationtype observationtype, |
|
7032 |
title text, |
|
7033 |
titlesuperior text, |
|
7034 |
volume text, |
|
7035 |
issue text, |
|
7036 |
pagerange text, |
|
7037 |
totalpages integer, |
|
7038 |
publisher text, |
|
7039 |
publicationplace text, |
|
7040 |
isbn text, |
|
7041 |
edition text, |
|
7042 |
numberofvolumes integer, |
|
7043 |
chapternumber integer, |
|
7044 |
reportnumber integer, |
|
7045 |
communicationtype text, |
|
7046 |
degree text, |
|
7047 |
url text, |
|
7048 |
doi text, |
|
7049 |
additionalinfo text, |
|
7050 |
pubdate date, |
|
7051 |
accessdate date, |
|
7052 |
conferencedate date, |
|
7053 |
datecreated date DEFAULT now() NOT NULL, |
|
7054 |
createdby text, |
|
7055 |
datelastmodified date DEFAULT now() NOT NULL, |
|
7056 |
lastmodifiedby text, |
|
7057 |
import_revision text |
|
7058 |
); |
|
7059 |
|
|
7060 |
|
|
7061 |
-- |
|
7062 |
-- Name: 2014-10-18.Juergen_Dengler.sPlot; Type: VIEW; Schema: public; Owner: - |
|
7063 |
-- |
|
7064 |
|
|
7065 |
CREATE VIEW "2014-10-18.Juergen_Dengler.sPlot" AS |
|
7066 |
SELECT analytical_stem.scrubbed_species_binomial AS species, |
|
7067 |
analytical_stem.cover_percent, |
|
7068 |
analytical_stem.individual_count AS abundance_count, |
|
7069 |
analytical_stem.latitude, |
|
7070 |
analytical_stem.longitude, |
|
7071 |
analytical_stem.coord_uncertainty_m AS coordinate_precision_m, |
|
7072 |
analytical_stem.community_concept_name AS formation, |
|
7073 |
_ha_to_m2(analytical_stem.plot_area_ha) AS plot_size_m2, |
|
7074 |
analytical_stem.date_collected AS date_of_recording, |
|
7075 |
analytical_stem.country, |
|
7076 |
analytical_stem.slope_gradient_deg AS slope_inclination_deg, |
|
7077 |
analytical_stem.slope_aspect_deg, |
|
7078 |
analytical_stem.elevation_m AS altitude_m, |
|
7079 |
analytical_stem.stem_height_m, |
|
7080 |
analytical_stem.datasource, |
|
7081 |
analytical_stem.project_id, |
|
7082 |
analytical_stem.project_contributors |
|
7083 |
FROM (analytical_stem |
|
7084 |
JOIN source ON ((source.shortname = analytical_stem.datasource))) |
|
7085 |
WHERE ((((analytical_stem.datasource = ANY (public_datasources())) AND (source.observationtype = 'plot'::observationtype)) AND COALESCE((analytical_stem.is_geovalid)::boolean, true)) AND (NOT COALESCE((analytical_stem.is_cultivated)::boolean, false))); |
|
7086 |
|
|
7087 |
|
|
7088 |
-- |
|
7019 | 7089 |
-- Name: 2014-3-11.Jeff_Ott.climatic_range_determinants; Type: VIEW; Schema: public; Owner: - |
7020 | 7090 |
-- |
7021 | 7091 |
|
... | ... | |
7073 | 7143 |
|
7074 | 7144 |
|
7075 | 7145 |
-- |
7076 |
-- Name: source; Type: TABLE; Schema: public; Owner: -; Tablespace: |
|
7077 |
-- |
|
7078 |
|
|
7079 |
CREATE TABLE source ( |
|
7080 |
source_id integer NOT NULL, |
|
7081 |
matched_source_id integer, |
|
7082 |
parent_id integer, |
|
7083 |
shortname text NOT NULL, |
|
7084 |
citation text, |
|
7085 |
sourcetype sourcetype, |
|
7086 |
accesslevel accesslevel, |
|
7087 |
accessconditions text, |
|
7088 |
observationtype observationtype, |
|
7089 |
title text, |
|
7090 |
titlesuperior text, |
|
7091 |
volume text, |
|
7092 |
issue text, |
|
7093 |
pagerange text, |
|
7094 |
totalpages integer, |
|
7095 |
publisher text, |
|
7096 |
publicationplace text, |
|
7097 |
isbn text, |
|
7098 |
edition text, |
|
7099 |
numberofvolumes integer, |
|
7100 |
chapternumber integer, |
|
7101 |
reportnumber integer, |
|
7102 |
communicationtype text, |
|
7103 |
degree text, |
|
7104 |
url text, |
|
7105 |
doi text, |
|
7106 |
additionalinfo text, |
|
7107 |
pubdate date, |
|
7108 |
accessdate date, |
|
7109 |
conferencedate date, |
|
7110 |
datecreated date DEFAULT now() NOT NULL, |
|
7111 |
createdby text, |
|
7112 |
datelastmodified date DEFAULT now() NOT NULL, |
|
7113 |
lastmodifiedby text, |
|
7114 |
import_revision text |
|
7115 |
); |
|
7116 |
|
|
7117 |
|
|
7118 |
-- |
|
7119 | 7146 |
-- Name: 2014-6-4.Iara_Lacher.reserve_prioritization; Type: VIEW; Schema: public; Owner: - |
7120 | 7147 |
-- |
7121 | 7148 |
|
... | ... | |
19898 | 19925 |
|
19899 | 19926 |
|
19900 | 19927 |
-- |
19928 |
-- Name: source; Type: ACL; Schema: public; Owner: - |
|
19929 |
-- |
|
19930 |
|
|
19931 |
REVOKE ALL ON TABLE source FROM PUBLIC; |
|
19932 |
REVOKE ALL ON TABLE source FROM bien; |
|
19933 |
GRANT ALL ON TABLE source TO bien; |
|
19934 |
GRANT SELECT ON TABLE source TO bien_read; |
|
19935 |
GRANT SELECT ON TABLE source TO public_; |
|
19936 |
|
|
19937 |
|
|
19938 |
-- |
|
19939 |
-- Name: 2014-10-18.Juergen_Dengler.sPlot; Type: ACL; Schema: public; Owner: - |
|
19940 |
-- |
|
19941 |
|
|
19942 |
REVOKE ALL ON TABLE "2014-10-18.Juergen_Dengler.sPlot" FROM PUBLIC; |
|
19943 |
REVOKE ALL ON TABLE "2014-10-18.Juergen_Dengler.sPlot" FROM bien; |
|
19944 |
GRANT ALL ON TABLE "2014-10-18.Juergen_Dengler.sPlot" TO bien; |
|
19945 |
GRANT SELECT ON TABLE "2014-10-18.Juergen_Dengler.sPlot" TO bien_read; |
|
19946 |
|
|
19947 |
|
|
19948 |
-- |
|
19901 | 19949 |
-- Name: 2014-3-11.Jeff_Ott.climatic_range_determinants; Type: ACL; Schema: public; Owner: - |
19902 | 19950 |
-- |
19903 | 19951 |
|
... | ... | |
19918 | 19966 |
|
19919 | 19967 |
|
19920 | 19968 |
-- |
19921 |
-- Name: source; Type: ACL; Schema: public; Owner: - |
|
19922 |
-- |
|
19923 |
|
|
19924 |
REVOKE ALL ON TABLE source FROM PUBLIC; |
|
19925 |
REVOKE ALL ON TABLE source FROM bien; |
|
19926 |
GRANT ALL ON TABLE source TO bien; |
|
19927 |
GRANT SELECT ON TABLE source TO bien_read; |
|
19928 |
GRANT SELECT ON TABLE source TO public_; |
|
19929 |
|
|
19930 |
|
|
19931 |
-- |
|
19932 | 19969 |
-- Name: 2014-6-4.Iara_Lacher.reserve_prioritization; Type: ACL; Schema: public; Owner: - |
19933 | 19970 |
-- |
19934 | 19971 |
|
trunk/schemas/vegbien.sql | ||
---|---|---|
7016 | 7016 |
|
7017 | 7017 |
|
7018 | 7018 |
-- |
7019 |
-- Name: source; Type: TABLE; Schema: public; Owner: -; Tablespace: |
|
7020 |
-- |
|
7021 |
|
|
7022 |
CREATE TABLE source ( |
|
7023 |
source_id integer NOT NULL, |
|
7024 |
matched_source_id integer, |
|
7025 |
parent_id integer, |
|
7026 |
shortname text NOT NULL, |
|
7027 |
citation text, |
|
7028 |
sourcetype sourcetype, |
|
7029 |
accesslevel accesslevel, |
|
7030 |
accessconditions text, |
|
7031 |
observationtype observationtype, |
|
7032 |
title text, |
|
7033 |
titlesuperior text, |
|
7034 |
volume text, |
|
7035 |
issue text, |
|
7036 |
pagerange text, |
|
7037 |
totalpages integer, |
|
7038 |
publisher text, |
|
7039 |
publicationplace text, |
|
7040 |
isbn text, |
|
7041 |
edition text, |
|
7042 |
numberofvolumes integer, |
|
7043 |
chapternumber integer, |
|
7044 |
reportnumber integer, |
|
7045 |
communicationtype text, |
|
7046 |
degree text, |
|
7047 |
url text, |
|
7048 |
doi text, |
|
7049 |
additionalinfo text, |
|
7050 |
pubdate date, |
|
7051 |
accessdate date, |
|
7052 |
conferencedate date, |
|
7053 |
datecreated date DEFAULT now() NOT NULL, |
|
7054 |
createdby text, |
|
7055 |
datelastmodified date DEFAULT now() NOT NULL, |
|
7056 |
lastmodifiedby text, |
|
7057 |
import_revision text |
|
7058 |
); |
|
7059 |
|
|
7060 |
|
|
7061 |
-- |
|
7062 |
-- Name: 2014-10-18.Juergen_Dengler.sPlot; Type: VIEW; Schema: public; Owner: - |
|
7063 |
-- |
|
7064 |
|
|
7065 |
CREATE VIEW "2014-10-18.Juergen_Dengler.sPlot" AS |
|
7066 |
SELECT analytical_stem.scrubbed_species_binomial AS species, |
|
7067 |
analytical_stem.cover_percent, |
|
7068 |
analytical_stem.individual_count AS abundance_count, |
|
7069 |
analytical_stem.latitude, |
|
7070 |
analytical_stem.longitude, |
|
7071 |
analytical_stem.coord_uncertainty_m AS coordinate_precision_m, |
|
7072 |
analytical_stem.community_concept_name AS formation, |
|
7073 |
_ha_to_m2(analytical_stem.plot_area_ha) AS plot_size_m2, |
|
7074 |
analytical_stem.date_collected AS date_of_recording, |
|
7075 |
analytical_stem.country, |
|
7076 |
analytical_stem.slope_gradient_deg AS slope_inclination_deg, |
|
7077 |
analytical_stem.slope_aspect_deg, |
|
7078 |
analytical_stem.elevation_m AS altitude_m, |
|
7079 |
analytical_stem.stem_height_m, |
|
7080 |
analytical_stem.datasource, |
|
7081 |
analytical_stem.project_id, |
|
7082 |
analytical_stem.project_contributors |
|
7083 |
FROM (analytical_stem |
|
7084 |
JOIN source ON ((source.shortname = analytical_stem.datasource))) |
|
7085 |
WHERE ((((analytical_stem.datasource = ANY (public_datasources())) AND (source.observationtype = 'plot'::observationtype)) AND COALESCE((analytical_stem.is_geovalid)::boolean, true)) AND (NOT COALESCE((analytical_stem.is_cultivated)::boolean, false))); |
|
7086 |
|
|
7087 |
|
|
7088 |
-- |
|
7019 | 7089 |
-- Name: 2014-3-11.Jeff_Ott.climatic_range_determinants; Type: VIEW; Schema: public; Owner: - |
7020 | 7090 |
-- |
7021 | 7091 |
|
... | ... | |
7073 | 7143 |
|
7074 | 7144 |
|
7075 | 7145 |
-- |
7076 |
-- Name: source; Type: TABLE; Schema: public; Owner: -; Tablespace: |
|
7077 |
-- |
|
7078 |
|
|
7079 |
CREATE TABLE source ( |
|
7080 |
source_id integer NOT NULL, |
|
7081 |
matched_source_id integer, |
|
7082 |
parent_id integer, |
|
7083 |
shortname text NOT NULL, |
|
7084 |
citation text, |
|
7085 |
sourcetype sourcetype, |
|
7086 |
accesslevel accesslevel, |
|
7087 |
accessconditions text, |
|
7088 |
observationtype observationtype, |
|
7089 |
title text, |
|
7090 |
titlesuperior text, |
|
7091 |
volume text, |
|
7092 |
issue text, |
|
7093 |
pagerange text, |
|
7094 |
totalpages integer, |
|
7095 |
publisher text, |
|
7096 |
publicationplace text, |
|
7097 |
isbn text, |
|
7098 |
edition text, |
|
7099 |
numberofvolumes integer, |
|
7100 |
chapternumber integer, |
|
7101 |
reportnumber integer, |
|
7102 |
communicationtype text, |
|
7103 |
degree text, |
|
7104 |
url text, |
|
7105 |
doi text, |
|
7106 |
additionalinfo text, |
|
7107 |
pubdate date, |
|
7108 |
accessdate date, |
|
7109 |
conferencedate date, |
|
7110 |
datecreated date DEFAULT now() NOT NULL, |
|
7111 |
createdby text, |
|
7112 |
datelastmodified date DEFAULT now() NOT NULL, |
|
7113 |
lastmodifiedby text, |
|
7114 |
import_revision text |
|
7115 |
); |
|
7116 |
|
|
7117 |
|
|
7118 |
-- |
|
7119 | 7146 |
-- Name: 2014-6-4.Iara_Lacher.reserve_prioritization; Type: VIEW; Schema: public; Owner: - |
7120 | 7147 |
-- |
7121 | 7148 |
|
... | ... | |
19898 | 19925 |
|
19899 | 19926 |
|
19900 | 19927 |
-- |
19928 |
-- Name: source; Type: ACL; Schema: public; Owner: - |
|
19929 |
-- |
|
19930 |
|
|
19931 |
REVOKE ALL ON TABLE source FROM PUBLIC; |
|
19932 |
REVOKE ALL ON TABLE source FROM bien; |
|
19933 |
GRANT ALL ON TABLE source TO bien; |
|
19934 |
GRANT SELECT ON TABLE source TO bien_read; |
|
19935 |
GRANT SELECT ON TABLE source TO public_; |
|
19936 |
|
|
19937 |
|
|
19938 |
-- |
|
19939 |
-- Name: 2014-10-18.Juergen_Dengler.sPlot; Type: ACL; Schema: public; Owner: - |
|
19940 |
-- |
|
19941 |
|
|
19942 |
REVOKE ALL ON TABLE "2014-10-18.Juergen_Dengler.sPlot" FROM PUBLIC; |
|
19943 |
REVOKE ALL ON TABLE "2014-10-18.Juergen_Dengler.sPlot" FROM bien; |
|
19944 |
GRANT ALL ON TABLE "2014-10-18.Juergen_Dengler.sPlot" TO bien; |
|
19945 |
GRANT SELECT ON TABLE "2014-10-18.Juergen_Dengler.sPlot" TO bien_read; |
|
19946 |
|
|
19947 |
|
|
19948 |
-- |
|
19901 | 19949 |
-- Name: 2014-3-11.Jeff_Ott.climatic_range_determinants; Type: ACL; Schema: public; Owner: - |
19902 | 19950 |
-- |
19903 | 19951 |
|
... | ... | |
19918 | 19966 |
|
19919 | 19967 |
|
19920 | 19968 |
-- |
19921 |
-- Name: source; Type: ACL; Schema: public; Owner: - |
|
19922 |
-- |
|
19923 |
|
|
19924 |
REVOKE ALL ON TABLE source FROM PUBLIC; |
|
19925 |
REVOKE ALL ON TABLE source FROM bien; |
|
19926 |
GRANT ALL ON TABLE source TO bien; |
|
19927 |
GRANT SELECT ON TABLE source TO bien_read; |
|
19928 |
GRANT SELECT ON TABLE source TO public_; |
|
19929 |
|
|
19930 |
|
|
19931 |
-- |
|
19932 | 19969 |
-- Name: 2014-6-4.Iara_Lacher.reserve_prioritization; Type: ACL; Schema: public; Owner: - |
19933 | 19970 |
-- |
19934 | 19971 |
|
Also available in: Unified diff
schemas/public_.sql: added 2014-10-18.Juergen_Dengler.sPlot view