Migrate: preview025 causes migration error for Postgres db

Created on 27 Mar 2020  Â·  9Comments  Â·  Source: prisma/migrate

Bug description

Unable to connect to postgres db with new preview025. Works with preview024.

How to reproduce

  1. Change schema.
  2. Attempt to commit the changes: npx prisma2 migrate save --experimental

Prisma information

$ npx prisma2 migrate save --experimental
Error: Error in migration engine: Mar 27 08:44:36.142  INFO migration_engine: Starting migration engine RPC server git_hash="8814060fa684793b73d07dbfccd4b7777b3361ae"
Mar 27 08:44:36.659  INFO quaint::single: Starting a postgresql pool with 1 connections.
Mar 27 08:44:37.069  INFO tokio_postgres::connection: NOTICE: schema "public" already exists, skipping    
error Command failed with exit code 1.

Environment & setup

  • macOS
  • PostgreSQL
  • Prisma preview025
  • Node.js version: 12.6.0
bu0-needs-info kinbug tectypescript

Most helpful comment

Seems like we forgot to close or GitHub didn't store it.

All 9 comments

Is this reproducible with a new project created with prisma2 init and a trivial schema?

Hi @janpio, was unable to reproduce my error, so closing...

We should look into this anyway for existing databaes.

Lmk what you need from me to help you figure out what happened (no issues since, fyi).

Internal Note: This is about having a fallback error message when the engine dies and no real error message is returned.

I had a quick look into this and provided invalid Postgres credentials, but can't reproduce this. Keeping this open until we have more info.

It could very well have been due to my own not knowing what the heck I was doing, @timsuchanek — good chance that happened 😄

Closing for now then. Feel free to reopen or comment if something like this happens again.

Seems like we forgot to close or GitHub didn't store it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sameoldmadness picture sameoldmadness  Â·  4Comments

janpio picture janpio  Â·  3Comments

mariushab picture mariushab  Â·  3Comments

chanphiromsok picture chanphiromsok  Â·  3Comments

steebchen picture steebchen  Â·  3Comments