2017-09-15 14:10:38 +02:00
|
|
|
CREATE ROLE sahana NOSUPERUSER NOCREATEDB NOCREATEROLE NOINHERIT LOGIN ENCRYPTED PASSWORD '${SAHANA_PWD}';
|
|
|
|
CREATE DATABASE sahana;
|
|
|
|
REVOKE ALL ON DATABASE sahana FROM public;
|
|
|
|
ALTER DATABASE sahana OWNER TO sahana;
|
|
|
|
\c sahana;
|
|
|
|
CREATE EXTENSION postgis;
|
|
|
|
GRANT ALL ON geometry_columns TO sahana;
|
|
|
|
GRANT ALL ON spatial_ref_sys TO sahana;
|