Skip to content

init flow only offers introspection option and terminates early when using a new PostgreSQL DB #73

Closed

Description

@nikolasburk

I want to use prisma2 init with a new and empty PostgreSQL database. After I selected Postgres in the first step of the flow, I enter the credentials:

Screen Shot 2019-07-02 at 15 32 22

Once connected to the database, the CLI says:

Screen Shot 2019-07-02 at 15 34 58

When creating a new schema as done in the screenshot, the button Introspect should say Create schema.

When I click on Introspect, it terminates and creates a schema file that only has the datasource configured but it should proceed to the boilerplate selection.

Activity

  1. alexthegoodman commented on Jul 6, 2019

    @alexthegoodman

    Thank you

  2. added
    bug/2-confirmed
    on Jul 10, 2019
  3. ManAnRuck commented on Jul 10, 2019

    @ManAnRuck

    same issue

    installed with yarn global add prisma2 (also tested with global install with npm)

    [email protected], binary version: 987243ce27251e1c05e83b84363017054686fe17
    
    System:
          OS: macOS 10.14.5
          CPU: (4) x64 Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz
          Memory: 443.38 MB / 16.00 GB
          Shell: 5.3 - /bin/zsh
        Binaries:
          Node: 10.16.0 - ~/.nvm/versions/node/v10.16.0/bin/node
          Yarn: 1.16.0 - ~/.yarn/bin/yarn
          npm: 6.9.0 - ~/.nvm/versions/node/v10.16.0/bin/npm
    

    latest prisma2 version with more output is 0.0.101 but this has also only the single Prisma config file. (all other previous versions <0.0.90 has problems with empty databases)

    Bildschirmfoto 2019-07-11 um 09 27 10

    can you add some informations how to contribute Prisma2-CLI?

  4. ManAnRuck commented on Jul 18, 2019

    @ManAnRuck

    still in version [email protected], binary version: 4f33077038a490e4b2c1c260f109309e4a447181


    on prisma2 lift save --name 'init' I got this error (if it should somehow be related) prisma/migrate#10

  5. schickling commented on Jul 29, 2019

    @schickling
    Member

    Will be solved via #278

  6. Andrew1325 commented on Aug 19, 2019

    @Andrew1325
  7. janpio commented on Aug 19, 2019

    @janpio
  8. added a commit that references this issue on Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug/2-confirmedkind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions