Move config templates to priv so they can be found in releases
[akkoma] / priv / templates / sample_psql.eex
diff --git a/priv/templates/sample_psql.eex b/priv/templates/sample_psql.eex
new file mode 100644 (file)
index 0000000..f0ac05e
--- /dev/null
@@ -0,0 +1,7 @@
+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";