debianize-mobilizon/support/postgresql/setup_db.psql

9 lines
263 B
Plaintext
Raw Normal View History

2019-10-18 20:04:39 +02:00
CREATE USER <%= database_username %> WITH ENCRYPTED PASSWORD '<%= database_password %>';
CREATE DATABASE <%= database_name %> OWNER <%= database_username %>;
\c <%= database_name %>
CREATE EXTENSION postgis;
CREATE EXTENSION pg_trgm;
CREATE EXTENSION unaccent;