aboutsummaryrefslogtreecommitdiff
path: root/priv/templates/sample_psql.eex
diff options
context:
space:
mode:
authordcc <dcc@logografos.com>2023-09-02 00:52:52 -0700
committerdcc <dcc@logografos.com>2023-09-02 00:52:52 -0700
commit3a4773c3c2bd0bbef244eb519b07208da9108e49 (patch)
tree973567a6f3abb37bfb0f785b1cad14ed55840ef5 /priv/templates/sample_psql.eex
downloadanni-3a4773c3c2bd0bbef244eb519b07208da9108e49.tar.gz
anni-3a4773c3c2bd0bbef244eb519b07208da9108e49.tar.bz2
anni-3a4773c3c2bd0bbef244eb519b07208da9108e49.zip
First
Diffstat (limited to 'priv/templates/sample_psql.eex')
-rw-r--r--priv/templates/sample_psql.eex12
1 files changed, 12 insertions, 0 deletions
diff --git a/priv/templates/sample_psql.eex b/priv/templates/sample_psql.eex
new file mode 100644
index 0000000..627839a
--- /dev/null
+++ b/priv/templates/sample_psql.eex
@@ -0,0 +1,12 @@
+CREATE USER <%= dbuser %> WITH ENCRYPTED PASSWORD '<%= dbpass %>';
+CREATE DATABASE <%= dbname %> OWNER <%= dbuser %>;
+\c <%= dbname %>;
+--Extensions made by ecto.migrate that need superuser access
+CREATE EXTENSION IF NOT EXISTS citext;
+CREATE EXTENSION IF NOT EXISTS pg_trgm;
+CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
+<%= if rum_enabled do
+ "CREATE EXTENSION IF NOT EXISTS rum;"
+else
+""
+end %>