Spotter-VM/ccleanup/createdb.sql

7 lines
262 B
MySQL
Raw Normal View History

2018-03-25 14:07:25 +02:00
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;