From 71456f1c4836202c44db7f136092ec39ef46f763 Mon Sep 17 00:00:00 2001 From: Jeremy Doucet Date: Mon, 26 Apr 2021 12:08:50 -0700 Subject: [PATCH] fix: the prisma .env template was missing a colon between the username and password for the postgres url (#134) * fix: the prisma .env template was missing a colon between the username and password for the postgres url * Fixes test * Need to add tests for both with and without password. --- packages/create-bison-app/template/prisma/_.env.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/create-bison-app/template/prisma/_.env.ejs b/packages/create-bison-app/template/prisma/_.env.ejs index cc831e2d..51de60df 100644 --- a/packages/create-bison-app/template/prisma/_.env.ejs +++ b/packages/create-bison-app/template/prisma/_.env.ejs @@ -4,4 +4,4 @@ # Prisma supports the native connection string format for PostgreSQL, MySQL and SQLite. # See the documentation for all the connection string options: https://pris.ly/d/connection-strings -DATABASE_URL="postgresql://<%= db.dev.user %><%= db.dev.password %>@<%= db.dev.host %>:<%= db.dev.port %>/<%= db.dev.name %>?schema=public" +DATABASE_URL="postgresql://<%= db.dev.user %><% if (db.dev.password) { %>:<%= db.dev.password %><% } %>@<%= db.dev.host %>:<%= db.dev.port %>/<%= db.dev.name %>?schema=public"