From 3a4773c3c2bd0bbef244eb519b07208da9108e49 Mon Sep 17 00:00:00 2001 From: dcc Date: Sat, 2 Sep 2023 00:52:52 -0700 Subject: First --- priv/templates/sample_psql.eex | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 priv/templates/sample_psql.eex (limited to 'priv/templates/sample_psql.eex') 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 %> -- cgit v1.2.3