Revision 14450
Added by Aaron Marcuse-Kubitza over 10 years ago
vegbien.sql | ||
---|---|---|
11636 | 11636 |
|
11637 | 11637 |
|
11638 | 11638 |
-- |
11639 |
-- Name: threatened_taxonlabel_view; Type: VIEW; Schema: public; Owner: - |
|
11640 |
-- |
|
11641 |
|
|
11642 |
CREATE VIEW threatened_taxonlabel_view AS |
|
11643 |
SELECT DISTINCT accepted_taxonlabel_descendant.descendant_id AS taxonlabel_id |
|
11644 |
FROM ((taxonlabel datasource_taxonlabel |
|
11645 |
JOIN taxonlabel accepted_taxonlabel ON ((accepted_taxonlabel.taxonlabel_id = datasource_taxonlabel.canon_label_id))) |
|
11646 |
JOIN taxonlabel_relationship accepted_taxonlabel_descendant ON ((accepted_taxonlabel_descendant.ancestor_id = accepted_taxonlabel.taxonlabel_id))) |
|
11647 |
WHERE (((datasource_taxonlabel.source_id = ( SELECT source_by_shortname('IUCN'::text) AS source_by_shortname)) AND (datasource_taxonlabel.taxonomicname IS NOT NULL)) AND (accepted_taxonlabel.rank >= 'species'::taxonrank)); |
|
11648 |
|
|
11649 |
|
|
11650 |
-- |
|
11651 | 11639 |
-- Name: tnrs_input_name; Type: VIEW; Schema: public; Owner: - |
11652 | 11640 |
-- |
11653 | 11641 |
|
... | ... | |
20501 | 20489 |
|
20502 | 20490 |
|
20503 | 20491 |
-- |
20504 |
-- Name: threatened_taxonlabel_view; Type: ACL; Schema: public; Owner: - |
|
20505 |
-- |
|
20506 |
|
|
20507 |
REVOKE ALL ON TABLE threatened_taxonlabel_view FROM PUBLIC; |
|
20508 |
REVOKE ALL ON TABLE threatened_taxonlabel_view FROM bien; |
|
20509 |
GRANT ALL ON TABLE threatened_taxonlabel_view TO bien; |
|
20510 |
GRANT SELECT ON TABLE threatened_taxonlabel_view TO bien_read; |
|
20511 |
|
|
20512 |
|
|
20513 |
-- |
|
20514 | 20492 |
-- Name: tnrs_input_name; Type: ACL; Schema: public; Owner: - |
20515 | 20493 |
-- |
20516 | 20494 |
|
Also available in: Unified diff
schemas/public_.sql: removed no longer used threatened_taxonlabel_view. use iucn_red_list_view instead.