Project

General

Profile

« Previous | Next » 

Revision 11483

schemas/vegbien.sql: added 2013-7-10.Naia.range_limiting_factors

View differences:

schemas/vegbien.my.sql
846 846

  
847 847

  
848 848
--
849
-- Name: 2013-7-10.Naia.range_limiting_factors; Type: VIEW; Schema: public; Owner: -
850
--
851

  
852

  
853

  
854

  
855
--
849 856
-- Name: address; Type: TABLE; Schema: public; Owner: -; Tablespace: 
850 857
--
851 858

  
......
7417 7424

  
7418 7425

  
7419 7426
--
7427
-- Name: 2013-7-10.Naia.range_limiting_factors; Type: ACL; Schema: public; Owner: -
7428
--
7429

  
7430

  
7431

  
7432

  
7433

  
7434

  
7435

  
7436
--
7420 7437
-- Name: address; Type: ACL; Schema: public; Owner: -
7421 7438
--
7422 7439

  
schemas/vegbien.sql
1819 1819

  
1820 1820

  
1821 1821
--
1822
-- Name: 2013-7-10.Naia.range_limiting_factors; Type: VIEW; Schema: public; Owner: -
1823
--
1824

  
1825
CREATE VIEW "2013-7-10.Naia.range_limiting_factors" AS
1826
    SELECT analytical_stem.taxon_occurrence__pkey AS occurrence_id, analytical_stem."speciesBinomialWithMorphospecies" AS species, analytical_stem."decimalLatitude" AS latitude__deg, analytical_stem."decimalLongitude" AS longitude__deg, analytical_stem."coordinateUncertaintyInMeters" AS coords__uncertainty__m FROM analytical_stem WHERE ((((NOT COALESCE((analytical_stem.cultivated_bien)::boolean, false)) AND COALESCE((analytical_stem.geovalid_bien)::boolean, true)) AND (analytical_stem."decimalLatitude" IS NOT NULL)) AND (analytical_stem."decimalLongitude" IS NOT NULL)) ORDER BY analytical_stem.taxon_occurrence__pkey;
1827

  
1828

  
1829
--
1822 1830
-- Name: address; Type: TABLE; Schema: public; Owner: -; Tablespace: 
1823 1831
--
1824 1832

  
......
8799 8807

  
8800 8808

  
8801 8809
--
8810
-- Name: 2013-7-10.Naia.range_limiting_factors; Type: ACL; Schema: public; Owner: -
8811
--
8812

  
8813
REVOKE ALL ON TABLE "2013-7-10.Naia.range_limiting_factors" FROM PUBLIC;
8814
REVOKE ALL ON TABLE "2013-7-10.Naia.range_limiting_factors" FROM bien;
8815
GRANT ALL ON TABLE "2013-7-10.Naia.range_limiting_factors" TO bien;
8816
GRANT SELECT ON TABLE "2013-7-10.Naia.range_limiting_factors" TO bien_read;
8817

  
8818

  
8819
--
8802 8820
-- Name: address; Type: ACL; Schema: public; Owner: -
8803 8821
--
8804 8822

  

Also available in: Unified diff