Spotter-VM/sigmah/setup/createdb.sql
2018-09-13 14:39:35 +02:00

7 lines
250 B
SQL

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