-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |