Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init, Introspection: Tells me that schema is not empty, does not even exist though #777

Closed
janpio opened this issue Oct 17, 2019 · 4 comments
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. topic: old-introspection
Milestone

Comments

@janpio
Copy link
Contributor

janpio commented Oct 17, 2019

When introspecting a Postgres DB for a "Starter Kit" init run, I entered database postgres and schema my_db. Something goes wrong, and the error message tells me that schema 'postgres' is not empty. Something is getting confused here.

image

C:\Users\Jan\Documents\throwaway>prisma2 init dafasdf3422

 SUCCESS  Connected to PostgreSQL database as postgres

The PostgreSQL schema `postgres` is not empty.
When using a starter kit, you must provide an empty schema.
Create a new PostgreSQL schema or use an empty one.

┌─ Database options ──────────────────────────────────────────────────────┐
│                                                                         │
│ > Create new PostgreSQL schema   Start from scratch                     │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘

< Back (Database credentials)
@janpio janpio added the topic: prisma init CLI: prisma init label Oct 17, 2019
@janpio janpio changed the title init Introspection tells me that schema postgres is not empty, does not even exist though init, Introspection: Tells me that schema postgres is not empty, does not even exist though Oct 17, 2019
@pantharshit00
Copy link
Contributor

I am able to reproduce this.

This occurs when you put the schema in the Schema(optional) field in the database credentials form. It is not being used by the cli

@pantharshit00 pantharshit00 added bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. labels Oct 18, 2019
@divyenduz
Copy link
Contributor

@pantharshit00 can you please quickly re-triage this one?

@janpio janpio changed the title init, Introspection: Tells me that schema postgres is not empty, does not even exist though init, Introspection: Tells me that schema is not empty, does not even exist though Dec 23, 2019
@janpio
Copy link
Contributor Author

janpio commented Dec 23, 2019

This is currently not reproducible as the database/schema entered in the credentials form is completely ignored. Will have to be retested when this is fixed.

@janpio janpio added this to the Preview 20 milestone Jan 7, 2020
@janpio janpio added topic: old-introspection and removed topic: prisma init CLI: prisma init labels Jan 16, 2020
@janpio
Copy link
Contributor Author

janpio commented Jan 16, 2020

We will replace the existing init wizard with a much simpler version in 2.0.0-preview020, so this problem will be gone after that 🚀

@janpio janpio closed this as completed Jan 16, 2020
@pantharshit00 pantharshit00 removed their assignment Apr 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. topic: old-introspection
Projects
None yet
Development

No branches or pull requests

3 participants