Revision 7614
Added by Aaron Marcuse-Kubitza almost 12 years ago
schemas/vegbien.my.sql | ||
---|---|---|
860 | 860 |
|
861 | 861 |
|
862 | 862 |
-- |
863 |
-- Name: analytical_specimen; Type: VIEW; Schema: public; Owner: - |
|
864 |
-- |
|
865 |
|
|
866 |
|
|
867 |
|
|
868 |
|
|
869 |
-- |
|
863 | 870 |
-- Name: coordinates; Type: TABLE; Schema: public; Owner: -; Tablespace: |
864 | 871 |
-- |
865 | 872 |
|
... | ... | |
7274 | 7281 |
|
7275 | 7282 |
|
7276 | 7283 |
-- |
7284 |
-- Name: analytical_specimen; Type: ACL; Schema: public; Owner: - |
|
7285 |
-- |
|
7286 |
|
|
7287 |
|
|
7288 |
|
|
7289 |
|
|
7290 |
|
|
7291 |
|
|
7292 |
|
|
7293 |
-- |
|
7277 | 7294 |
-- Name: coordinates; Type: ACL; Schema: public; Owner: - |
7278 | 7295 |
-- |
7279 | 7296 |
|
schemas/vegbien.sql | ||
---|---|---|
1736 | 1736 |
|
1737 | 1737 |
|
1738 | 1738 |
-- |
1739 |
-- Name: analytical_specimen; Type: VIEW; Schema: public; Owner: - |
|
1740 |
-- |
|
1741 |
|
|
1742 |
CREATE VIEW analytical_specimen AS |
|
1743 |
SELECT analytical_stem.datasource, analytical_stem."institutionCode", analytical_stem."collectionCode", analytical_stem."catalogNumber", analytical_stem."occurrenceID", analytical_stem.country, analytical_stem."stateProvince", analytical_stem.county, analytical_stem.locality, analytical_stem."decimalLatitude", analytical_stem."decimalLongitude", analytical_stem."coordinateUncertaintyInMeters", analytical_stem."coordinateSource_bien", analytical_stem."georeferenceProtocol_bien", analytical_stem.geovalid_bien, analytical_stem."isNewWorld_bien", analytical_stem."elevationInMeters", analytical_stem."recordedBy", analytical_stem."recordNumber", analytical_stem."dateCollected", analytical_stem.family_verbatim, analytical_stem."scientificName_verbatim", analytical_stem."scientificNameAuthorship_verbatim", analytical_stem."identifiedBy", analytical_stem."dateIdentified", analytical_stem."identificationRemarks", analytical_stem.family_matched, analytical_stem."taxonName_matched", analytical_stem."scientificNameAuthorship_matched", analytical_stem."higherPlantGroup_bien", analytical_stem.family, analytical_stem.genus, analytical_stem."speciesBinomialWithMorphospecies", analytical_stem."taxonName", analytical_stem."scientificNameAuthorship", analytical_stem.threatened_bien, analytical_stem."growthForm", analytical_stem."reproductiveCondition", analytical_stem.cultivated_bien, analytical_stem."cultivatedBasis_bien" FROM analytical_stem; |
|
1744 |
|
|
1745 |
|
|
1746 |
-- |
|
1739 | 1747 |
-- Name: coordinates; Type: TABLE; Schema: public; Owner: -; Tablespace: |
1740 | 1748 |
-- |
1741 | 1749 |
|
... | ... | |
8536 | 8544 |
|
8537 | 8545 |
|
8538 | 8546 |
-- |
8547 |
-- Name: analytical_specimen; Type: ACL; Schema: public; Owner: - |
|
8548 |
-- |
|
8549 |
|
|
8550 |
REVOKE ALL ON TABLE analytical_specimen FROM PUBLIC; |
|
8551 |
REVOKE ALL ON TABLE analytical_specimen FROM bien; |
|
8552 |
GRANT ALL ON TABLE analytical_specimen TO bien; |
|
8553 |
GRANT SELECT ON TABLE analytical_specimen TO bien_read; |
|
8554 |
|
|
8555 |
|
|
8556 |
-- |
|
8539 | 8557 |
-- Name: coordinates; Type: ACL; Schema: public; Owner: - |
8540 | 8558 |
-- |
8541 | 8559 |
|
Also available in: Unified diff
schemas/vegbien.sql: Added analytical_specimen view