Skip to content

Commit

Permalink
fix(init): schema only mysql and postgres
Browse files Browse the repository at this point in the history
closes #778
  • Loading branch information
timsuchanek committed Dec 13, 2019
1 parent b8e4bfe commit 97023f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cli/introspection/src/prompt/screens/Step4SelectDatabase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const Step4SelectDatabase: React.FC = () => {
{emptySchemas.map((schema, index) => (
<Link
label={schema.name}
state={{ dbCredentials: { [schemaWord]: schema } as any }}
state={{ dbCredentials: { [schemaWord]: schema.name } }}
href={state.useStarterKit ? 'download-example' : 'language-selection'}
tabIndex={index}
key={schema.name}
Expand All @@ -75,7 +75,7 @@ const Step4SelectDatabase: React.FC = () => {
{nonEmptySchemas.map((schema, index) => (
<Link
label={schema.name}
state={{ dbCredentials: { [schemaWord]: schema.name } as any }}
state={{ dbCredentials: { [schemaWord]: schema.name } }}
href="introspection"
tabIndex={index + emptySchemas.length}
key={schema.name}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ model Post {

const printCredentials = (credentials: DatabaseCredentials) => `datasource db {
provider = "${prettyPrintType(credentials.type)}"
url = "${credentials.uri || credentialsToUri(credentials)}"
url = "${credentialsToUri(credentials)}"
}`

function prettyPrintType(type) {
Expand Down
4 changes: 2 additions & 2 deletions cli/prisma2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"bin": "build/index.js",
"prisma": {
"version": "89fa1acc41ade2c2120d7ea2129e6741a3f9c1d3"
"version": "2c6caded8389f42b0461136a866573179c26eb0e"
},
"devDependencies": {
"@prisma/cli": "workspace:*",
Expand Down Expand Up @@ -75,4 +75,4 @@
"prepublishOnly": "pnpm run download && pnpm run ncc:download && pnpm run install && pnpm run test && pnpm run build",
"pkg": "pkg . -o pkg-build"
}
}
}

0 comments on commit 97023f6

Please sign in to comment.