Errorname / prisma-multi-tenant

🧭 Use Prisma as a multi-tenant provider for your application
MIT License
393 stars 45 forks source link

Stuck at Setting up development database #51

Closed asaadawey closed 4 years ago

asaadawey commented 4 years ago

Hello This my first time using pmt

here is my log exactly

C:\Users\donda\WebstormProjects\new-BackEnd-carRental>npm i -g prisma-multi-tenant

> @prisma/cli@2.5.1 preinstall C:\Users\donda\AppData\Roaming\npm\node_modules\prisma-multi-tenant\node_modules\@prisma\cli
> node preinstall/index.js

C:\Users\donda\AppData\Roaming\npm\prisma-multi-tenant -> C:\Users\donda\AppData\Roaming\npm\node_modules\prisma-multi-tenant\build\index.js
C:\Users\donda\AppData\Roaming\npm\pmt -> C:\Users\donda\AppData\Roaming\npm\node_modules\prisma-multi-tenant\build\index.js

> @prisma/cli@2.5.1 install C:\Users\donda\AppData\Roaming\npm\node_modules\prisma-multi-tenant\node_modules\@prisma\cli
> node download-build/index.js

> @prisma/client@2.5.1 postinstall C:\Users\donda\AppData\Roaming\npm\node_modules\prisma-multi-tenant\node_modules\@prisma\client
> node scripts/postinstall.js

✔ Generated Prisma Client to .\node_modules\@prisma\client in 148ms

You can now start using Prisma Client in your code:

import { PrismaClient } from '@prisma/client' // or const { PrismaClient } = require('@prisma/client')

const prisma = new PrismaClient()


Explore the full API: http://pris.ly/d/client
+ prisma-multi-tenant@2.3.1
added 51 packages from 35 contributors in 35.049s

C:\Users\donda\WebstormProjects\new-BackEnd-carRental>pmt init

  Installing `@prisma-multi-tenant/client` as a dependency in your app...

  We will now configure the management database:

? Management database url: postgresql://postgres:123456@localhost:5432/postgres?schema=public

? Are you sure of your inputs? Yes

  Updating .env and schema.prisma files...

  Generating prisma clients for both management and tenants...

  Setting up management database...
^CTerminate batch job (Y/N)? y

C:\Users\donda\WebstormProjects\new-BackEnd-carRental>pmt init

  Installing `@prisma-multi-tenant/client` as a dependency in your app...

  We will now configure the management database:

? Management database url: etting up management database...

? Are you sure of your inputs? No

C:\Users\donda\WebstormProjects\new-BackEnd-carRental>pmt init

  Installing `@prisma-multi-tenant/client` as a dependency in your app...

  We will now configure the management database:

? Management database url: postgresql://postgres:123456@localhost:5432/postgres?schema=public

? Are you sure of your inputs? Yes

  Updating .env and schema.prisma files...

  Generating prisma clients for both management and tenants...

  Setting up management database...

It's stuck at Setting up management database...

asaadawey commented 4 years ago

solved by adding qutations at the start

In future release i suggest to auto import this or to warn users about it and thank you for the great work