Spotter-VM/lxc-apps/opendatakit/install/createdb.sql
2019-10-05 14:37:43 +02:00

10 lines
517 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;
CREATE ROLE opendatakitbuild NOSUPERUSER NOCREATEDB NOCREATEROLE NOINHERIT LOGIN ENCRYPTED PASSWORD '${OPENDATAKITBUILD_PWD}';
CREATE DATABASE opendatakitbuild;
REVOKE ALL ON DATABASE opendatakitbuild FROM public;
ALTER DATABASE opendatakitbuild OWNER TO opendatakitbuild;