mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-22 07:52:43 +00:00
support: add setup_db.psql
This commit is contained in:
parent
0a1270b73a
commit
95c71d77f7
2 changed files with 9 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -20,7 +20,7 @@ erl_crash.dump
|
|||
/.env
|
||||
.env.2
|
||||
|
||||
setup_db.psql
|
||||
/setup_db.psql
|
||||
|
||||
.elixir_ls
|
||||
/doc
|
||||
|
|
8
support/postgresql/setup_db.psql
Normal file
8
support/postgresql/setup_db.psql
Normal file
|
@ -0,0 +1,8 @@
|
|||
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;
|
Loading…
Reference in a new issue