Spotter-VM/odk/createdb.sql

5 lines
195 B
SQL

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