Skip to content

Commit

Permalink
fix: the prisma .env template was missing a colon between the usernam…
Browse files Browse the repository at this point in the history
…e 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.
  • Loading branch information
Jeremy-Doucet committed Apr 26, 2021
1 parent 25f3e99 commit 71456f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-bison-app/template/prisma/_.env.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 71456f1

Please sign in to comment.