Revision 13832
Added by Aaron Marcuse-Kubitza over 10 years ago
vegbien.sql | ||
---|---|---|
5518 | 5518 |
|
5519 | 5519 |
|
5520 | 5520 |
-- |
5521 |
-- Name: 2014-6-4.Iara_Lacher.reserve_prioritization; Type: VIEW; Schema: public; Owner: - |
|
5522 |
-- |
|
5523 |
|
|
5524 |
CREATE VIEW "2014-6-4.Iara_Lacher.reserve_prioritization" AS |
|
5525 |
SELECT analytical_stem.country, |
|
5526 |
analytical_stem."decimalLatitude", |
|
5527 |
analytical_stem."decimalLongitude", |
|
5528 |
analytical_stem."dateCollected", |
|
5529 |
COALESCE(analytical_stem."specimenHolderInstitutions", analytical_stem.datasource) AS orig_datasource, |
|
5530 |
analytical_stem.scrubbed_family AS accepted_family, |
|
5531 |
analytical_stem.scrubbed_genus AS accepted_genus, |
|
5532 |
analytical_stem.scrubbed_species_binomial AS accepted_species_binomial, |
|
5533 |
analytical_stem.scrubbed_taxon_name_with_author AS accepted_taxon_name_with_author, |
|
5534 |
analytical_stem."growthForm" AS lifeform |
|
5535 |
FROM analytical_stem |
|
5536 |
WHERE ((COALESCE((analytical_stem.geovalid_bien)::boolean, true) AND (NOT COALESCE((analytical_stem.cultivated_bien)::boolean, false))) AND COALESCE((analytical_stem.taxonomic_status = 'accepted'::text), false)); |
|
5537 |
|
|
5538 |
|
|
5539 |
-- |
|
5521 | 5540 |
-- Name: address; Type: TABLE; Schema: public; Owner: -; Tablespace: |
5522 | 5541 |
-- |
5523 | 5542 |
|
... | ... | |
16588 | 16607 |
|
16589 | 16608 |
|
16590 | 16609 |
-- |
16610 |
-- Name: 2014-6-4.Iara_Lacher.reserve_prioritization; Type: ACL; Schema: public; Owner: - |
|
16611 |
-- |
|
16612 |
|
|
16613 |
REVOKE ALL ON TABLE "2014-6-4.Iara_Lacher.reserve_prioritization" FROM PUBLIC; |
|
16614 |
REVOKE ALL ON TABLE "2014-6-4.Iara_Lacher.reserve_prioritization" FROM bien; |
|
16615 |
GRANT ALL ON TABLE "2014-6-4.Iara_Lacher.reserve_prioritization" TO bien; |
|
16616 |
GRANT SELECT ON TABLE "2014-6-4.Iara_Lacher.reserve_prioritization" TO bien_read; |
|
16617 |
|
|
16618 |
|
|
16619 |
-- |
|
16591 | 16620 |
-- Name: address; Type: ACL; Schema: public; Owner: - |
16592 | 16621 |
-- |
16593 | 16622 |
|
Also available in: Unified diff
schemas/public_.sql: added 2014-6-4.Iara_Lacher.reserve_prioritization