Spotter-VM/lxc-apps/dhis2/install/createdb.sql

9 lines
322 B
MySQL
Raw Permalink Normal View History

2020-11-09 07:45:55 +01:00
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;