Spotter-VM/odkbuild/createdb.sql

5 lines
225 B
SQL

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