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

10 lines
517 B
MySQL
Raw Permalink Normal View History

2018-04-21 22:57:56 +02:00
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;
2019-10-05 14:37:43 +02:00
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;