Migrate: prisma2 lift save hangs on first call

Created on 27 Nov 2019  路  3Comments  路  Source: prisma/migrate

datasource db {
  provider = "sqlite"
  url      = "file:../dev.db"
}

When I run npx prisma2 lift save --name 'init' on a new project, it asks to create a sqlite db file and then hangs in terminal exactly cutting some words:

You are trying to create a migration for Sqlite database d

I have to ctrl+c to kill the command and then on 2nd run it creates a migration properly.

As a sidenote it create a db file in the cwd, not in the proper path, so in git I have a good file and a one empty file.

bu2-confirmed kinbug

All 3 comments

Note, that this happens on a windows machine.

Hi,

Thanks for reporting this but this has been already reported once. So I am going to close this as a duplicate of https://github.com/prisma/lift/issues/219

@timsuchanek I was also able to reproduce the issue on Mac with the detailed info from the other ticket. It is related to relative paths.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

agryaznov picture agryaznov  路  3Comments

tontonrally picture tontonrally  路  5Comments

sameoldmadness picture sameoldmadness  路  4Comments

hamidb80 picture hamidb80  路  4Comments

chanphiromsok picture chanphiromsok  路  3Comments