Spotter-VM/lxc-apps/decidim/install/createdb.sql
2019-11-15 18:03:17 +01:00

8 lines
281 B
SQL

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