Spotter-VM/opendatakit/setup/createdb.sql
2018-09-13 13:42:36 +02:00

5 lines
243 B
SQL

CREATE ROLE opendatakit NOSUPERUSER NOCREATEDB NOCREATEROLE NOINHERIT LOGIN ENCRYPTED PASSWORD '${OPENDATAKIT_PWD}';
CREATE DATABASE opendatakit;
REVOKE ALL ON DATABASE opendatakit FROM public;
ALTER DATABASE opendatakit OWNER TO opendatakit;