9 lines
322 B
SQL
9 lines
322 B
SQL
CREATE ROLE dhis2 NOSUPERUSER NOCREATEDB NOCREATEROLE NOINHERIT LOGIN ENCRYPTED PASSWORD '${DHIS2_PWD}';
|
|
CREATE DATABASE dhis2;
|
|
REVOKE ALL ON DATABASE dhis2 FROM public;
|
|
ALTER DATABASE dhis2 OWNER TO dhis2;
|
|
\c dhis2;
|
|
CREATE EXTENSION postgis;
|
|
GRANT ALL ON geometry_columns TO dhis2;
|
|
GRANT ALL ON spatial_ref_sys TO dhis2;
|