Revision 13542
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/schemas/vegbien.my.sql | ||
---|---|---|
3240 | 3240 |
|
3241 | 3241 |
|
3242 | 3242 |
-- |
3243 |
-- Name: 2014-3-11.Jeff_Ott.climatic_range_determinants; Type: VIEW; Schema: public; Owner: - |
|
3244 |
-- |
|
3245 |
|
|
3246 |
|
|
3247 |
|
|
3248 |
|
|
3249 |
-- |
|
3243 | 3250 |
-- Name: address; Type: TABLE; Schema: public; Owner: -; Tablespace: |
3244 | 3251 |
-- |
3245 | 3252 |
|
... | ... | |
12309 | 12316 |
|
12310 | 12317 |
|
12311 | 12318 |
-- |
12319 |
-- Name: 2014-3-11.Jeff_Ott.climatic_range_determinants; Type: ACL; Schema: public; Owner: - |
|
12320 |
-- |
|
12321 |
|
|
12322 |
|
|
12323 |
|
|
12324 |
|
|
12325 |
|
|
12326 |
|
|
12327 |
|
|
12328 |
-- |
|
12312 | 12329 |
-- Name: address; Type: ACL; Schema: public; Owner: - |
12313 | 12330 |
-- |
12314 | 12331 |
|
trunk/schemas/public_.sql | ||
---|---|---|
5427 | 5427 |
|
5428 | 5428 |
|
5429 | 5429 |
-- |
5430 |
-- Name: 2014-3-11.Jeff_Ott.climatic_range_determinants; Type: VIEW; Schema: public; Owner: - |
|
5431 |
-- |
|
5432 |
|
|
5433 |
CREATE VIEW "2014-3-11.Jeff_Ott.climatic_range_determinants" AS |
|
5434 |
SELECT analytical_stem.datasource, |
|
5435 |
analytical_stem."decimalLatitude", |
|
5436 |
analytical_stem."decimalLongitude", |
|
5437 |
analytical_stem."higherPlantGroup_bien" AS "higherPlantGroup", |
|
5438 |
analytical_stem.scrubbed_family AS family, |
|
5439 |
analytical_stem.scrubbed_genus AS genus, |
|
5440 |
analytical_stem.scrubbed_species_binomial AS "speciesBinomial", |
|
5441 |
analytical_stem.scrubbed_taxon_name_with_author AS "scientificName" |
|
5442 |
FROM analytical_stem |
|
5443 |
WHERE (((((COALESCE((analytical_stem.geovalid_bien)::boolean, true) AND COALESCE((analytical_stem."isNewWorld_bien")::boolean, false)) AND (NOT COALESCE((analytical_stem.cultivated_bien)::boolean, false))) AND (analytical_stem.scrubbed_taxon_name_with_author IS NOT NULL)) AND (analytical_stem."decimalLatitude" IS NOT NULL)) AND (analytical_stem."decimalLongitude" IS NOT NULL)); |
|
5444 |
|
|
5445 |
|
|
5446 |
-- |
|
5430 | 5447 |
-- Name: address; Type: TABLE; Schema: public; Owner: -; Tablespace: |
5431 | 5448 |
-- |
5432 | 5449 |
|
... | ... | |
15949 | 15966 |
|
15950 | 15967 |
|
15951 | 15968 |
-- |
15969 |
-- Name: 2014-3-11.Jeff_Ott.climatic_range_determinants; Type: ACL; Schema: public; Owner: - |
|
15970 |
-- |
|
15971 |
|
|
15972 |
REVOKE ALL ON TABLE "2014-3-11.Jeff_Ott.climatic_range_determinants" FROM PUBLIC; |
|
15973 |
REVOKE ALL ON TABLE "2014-3-11.Jeff_Ott.climatic_range_determinants" FROM bien; |
|
15974 |
GRANT ALL ON TABLE "2014-3-11.Jeff_Ott.climatic_range_determinants" TO bien; |
|
15975 |
GRANT SELECT ON TABLE "2014-3-11.Jeff_Ott.climatic_range_determinants" TO bien_read; |
|
15976 |
|
|
15977 |
|
|
15978 |
-- |
|
15952 | 15979 |
-- Name: address; Type: ACL; Schema: public; Owner: - |
15953 | 15980 |
-- |
15954 | 15981 |
|
trunk/schemas/vegbien.sql | ||
---|---|---|
5427 | 5427 |
|
5428 | 5428 |
|
5429 | 5429 |
-- |
5430 |
-- Name: 2014-3-11.Jeff_Ott.climatic_range_determinants; Type: VIEW; Schema: public; Owner: - |
|
5431 |
-- |
|
5432 |
|
|
5433 |
CREATE VIEW "2014-3-11.Jeff_Ott.climatic_range_determinants" AS |
|
5434 |
SELECT analytical_stem.datasource, |
|
5435 |
analytical_stem."decimalLatitude", |
|
5436 |
analytical_stem."decimalLongitude", |
|
5437 |
analytical_stem."higherPlantGroup_bien" AS "higherPlantGroup", |
|
5438 |
analytical_stem.scrubbed_family AS family, |
|
5439 |
analytical_stem.scrubbed_genus AS genus, |
|
5440 |
analytical_stem.scrubbed_species_binomial AS "speciesBinomial", |
|
5441 |
analytical_stem.scrubbed_taxon_name_with_author AS "scientificName" |
|
5442 |
FROM analytical_stem |
|
5443 |
WHERE (((((COALESCE((analytical_stem.geovalid_bien)::boolean, true) AND COALESCE((analytical_stem."isNewWorld_bien")::boolean, false)) AND (NOT COALESCE((analytical_stem.cultivated_bien)::boolean, false))) AND (analytical_stem.scrubbed_taxon_name_with_author IS NOT NULL)) AND (analytical_stem."decimalLatitude" IS NOT NULL)) AND (analytical_stem."decimalLongitude" IS NOT NULL)); |
|
5444 |
|
|
5445 |
|
|
5446 |
-- |
|
5430 | 5447 |
-- Name: address; Type: TABLE; Schema: public; Owner: -; Tablespace: |
5431 | 5448 |
-- |
5432 | 5449 |
|
... | ... | |
15949 | 15966 |
|
15950 | 15967 |
|
15951 | 15968 |
-- |
15969 |
-- Name: 2014-3-11.Jeff_Ott.climatic_range_determinants; Type: ACL; Schema: public; Owner: - |
|
15970 |
-- |
|
15971 |
|
|
15972 |
REVOKE ALL ON TABLE "2014-3-11.Jeff_Ott.climatic_range_determinants" FROM PUBLIC; |
|
15973 |
REVOKE ALL ON TABLE "2014-3-11.Jeff_Ott.climatic_range_determinants" FROM bien; |
|
15974 |
GRANT ALL ON TABLE "2014-3-11.Jeff_Ott.climatic_range_determinants" TO bien; |
|
15975 |
GRANT SELECT ON TABLE "2014-3-11.Jeff_Ott.climatic_range_determinants" TO bien_read; |
|
15976 |
|
|
15977 |
|
|
15978 |
-- |
|
15952 | 15979 |
-- Name: address; Type: ACL; Schema: public; Owner: - |
15953 | 15980 |
-- |
15954 | 15981 |
|
Also available in: Unified diff
schemas/public_.sql: added 2014-3-11.Jeff_Ott.climatic_range_determinants