Spotter-VM/ccleanup/createdb.sql

7 lines
262 B
SQL

CREATE ROLE ccleanup NOSUPERUSER NOCREATEDB NOCREATEROLE NOINHERIT LOGIN ENCRYPTED PASSWORD '${CCLEANUP_PWD}';
CREATE DATABASE ccleanup;
REVOKE ALL ON DATABASE ccleanup FROM public;
ALTER DATABASE ccleanup OWNER TO ccleanup;
\c ccleanup
CREATE EXTENSION hstore;