X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=priv%2Ftemplates%2Fsample_psql.eex;fp=priv%2Ftemplates%2Fsample_psql.eex;h=f0ac05e5702bee70891f03b29d62e204e069aed8;hb=e76115989a0867d5a37a869b560153c2e7c060fd;hp=0000000000000000000000000000000000000000;hpb=2437f5128407bbcdfc152ea3f008d7eecc1728f2;p=akkoma diff --git a/priv/templates/sample_psql.eex b/priv/templates/sample_psql.eex new file mode 100644 index 000000000..f0ac05e57 --- /dev/null +++ b/priv/templates/sample_psql.eex @@ -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";