Skip to content

Commit

Permalink
Update 001_setup_db.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani authored Mar 18, 2024
1 parent fd6d899 commit ad1a458
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions doc/sql/001_setup_db.sql
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
-- CREATE SCHEMA geostore
CREATE user geostore LOGIN PASSWORD 'geostore' NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE;
CREATE USER geostore LOGIN PASSWORD 'geostore' NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE;

CREATE SCHEMA geostore;

GRANT USAGE ON SCHEMA geostore TO geostore ;
GRANT ALL ON SCHEMA geostore TO geostore ;

--GRANT SELECT ON public.spatial_ref_sys to geostore;
--GRANT SELECT,INSERT,DELETE ON public.geometry_columns to geostore;
GRANT SELECT ON public.spatial_ref_sys to geostore;
GRANT SELECT,INSERT,DELETE ON public.geometry_columns to geostore;

alter user geostore set search_path to geostore , public;
ALTER USER geostore SET search_path TO geostore , public;

-- CREATE SCHEMA georepo_test
CREATE user geostore_test LOGIN PASSWORD 'geostore_test' NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE;
CREATE USER geostore_test LOGIN PASSWORD 'geostore_test' NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE;

CREATE SCHEMA geostore_test;

GRANT USAGE ON SCHEMA geostore_test TO geostore_test;
GRANT ALL ON SCHEMA geostore_test TO geostore_test;

--GRANT SELECT ON public.spatial_ref_sys to geostore_test;
--GRANT SELECT,INSERT,DELETE ON public.geometry_columns to geostore_test;
GRANT SELECT ON public.spatial_ref_sys to geostore_test;
GRANT SELECT,INSERT,DELETE ON public.geometry_columns to geostore_test;

alter user geostore_test set search_path to geostore_test, public;
ALTER USER geostore_test SET search_path TO geostore_test, public;

0 comments on commit ad1a458

Please sign in to comment.