4906 |
4906 |
|
4907 |
4907 |
|
4908 |
4908 |
--
|
|
4909 |
-- Name: top_plot; Type: VIEW; Schema: public; Owner: -
|
|
4910 |
--
|
|
4911 |
|
|
4912 |
CREATE VIEW top_plot AS
|
|
4913 |
SELECT location.location_id,
|
|
4914 |
location.source_id,
|
|
4915 |
location.sourceaccessioncode,
|
|
4916 |
location.top_plot,
|
|
4917 |
location.parent_id,
|
|
4918 |
location.authorlocationcode,
|
|
4919 |
location.place_id,
|
|
4920 |
location.accesslevel,
|
|
4921 |
location.accessconditions,
|
|
4922 |
location.sublocationxposition_m,
|
|
4923 |
location.sublocationyposition_m,
|
|
4924 |
location.iscultivated,
|
|
4925 |
location.authorzone,
|
|
4926 |
location.authordatum,
|
|
4927 |
location.authorlocation,
|
|
4928 |
location.locationnarrative,
|
|
4929 |
location.azimuth,
|
|
4930 |
location.shape,
|
|
4931 |
location.area_m2,
|
|
4932 |
location.standsize,
|
|
4933 |
location.placementmethod,
|
|
4934 |
location.permanence,
|
|
4935 |
location.layoutnarrative,
|
|
4936 |
location.elevation_m,
|
|
4937 |
location.elevationaccuracy_m,
|
|
4938 |
location.elevationrange_m,
|
|
4939 |
location.verbatimelevation,
|
|
4940 |
location.slopeaspect_deg,
|
|
4941 |
location.minslopeaspect_deg,
|
|
4942 |
location.maxslopeaspect_deg,
|
|
4943 |
location.slopegradient_fraction,
|
|
4944 |
location.minslopegradient_fraction,
|
|
4945 |
location.maxslopegradient_fraction,
|
|
4946 |
location.topoposition,
|
|
4947 |
location.landform,
|
|
4948 |
location.surficialdeposits,
|
|
4949 |
location.rocktype,
|
|
4950 |
location.submitter_surname,
|
|
4951 |
location.submitter_givenname,
|
|
4952 |
location.submitter_email,
|
|
4953 |
location.notespublic,
|
|
4954 |
location.notesmgt,
|
|
4955 |
location.revisions,
|
|
4956 |
location.dateentered,
|
|
4957 |
location.locationrationalenarrative
|
|
4958 |
FROM location
|
|
4959 |
WHERE (location.parent_id IS NULL);
|
|
4960 |
|
|
4961 |
|
|
4962 |
--
|
|
4963 |
-- Name: VIEW top_plot; Type: COMMENT; Schema: public; Owner: -
|
|
4964 |
--
|
|
4965 |
|
|
4966 |
COMMENT ON VIEW top_plot IS 'when updating, use * as the column list';
|
|
4967 |
|
|
4968 |
|
|
4969 |
--
|
4909 |
4970 |
-- Name: trait_trait_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
4910 |
4971 |
--
|
4911 |
4972 |
|
... | ... | |
11561 |
11622 |
|
11562 |
11623 |
|
11563 |
11624 |
--
|
|
11625 |
-- Name: top_plot; Type: ACL; Schema: public; Owner: -
|
|
11626 |
--
|
|
11627 |
|
|
11628 |
REVOKE ALL ON TABLE top_plot FROM PUBLIC;
|
|
11629 |
REVOKE ALL ON TABLE top_plot FROM bien;
|
|
11630 |
GRANT ALL ON TABLE top_plot TO bien;
|
|
11631 |
GRANT SELECT ON TABLE top_plot TO bien_read;
|
|
11632 |
|
|
11633 |
|
|
11634 |
--
|
11564 |
11635 |
-- Name: userdefined; Type: ACL; Schema: public; Owner: -
|
11565 |
11636 |
--
|
11566 |
11637 |
|
schemas/vegbien.sql: added top_plot view