Skip to content

Commit

Permalink
Support postgres:// as a database URL scheme
Browse files Browse the repository at this point in the history
In addition to postgresql://

Issue: #599
Migration engine PR: prisma/prisma-engines#101
  • Loading branch information
tomhoule committed Oct 14, 2019
1 parent e04d81b commit c630d3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/introspection/src/convertCredentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ function databaseTypeToProtocol(databaseType: DatabaseType): string {
function protocolToDatabaseType(protocol: string): DatabaseType {
switch (protocol) {
case 'postgresql:':
case 'postgres:':
return DatabaseType.postgres
case 'mongodb:':
return DatabaseType.mongo
Expand Down

0 comments on commit c630d3b

Please sign in to comment.