migrate save and up always recreate the db #316
Comments
I am seeing the same issue. prisma/schema.prisma
Prisma2 version: 2.0.0-preview020.3 Windows 10 Start with prisma.schema file and package.json... nothing else. run run select Yes at the create new database prompt
|
I can confirm this now. This doesn't happen when I use |
This comment has been minimized.
This comment has been minimized.
Re-tested under 2.0.0-preview021 on Windows 10: |
@mikeslade Refer to #342 for the windows issue. |
@Jolg42 will repro |
I could reproduce with It's also recommended that everybody switches to the |
It is now fixed in the latest dev release and will be shipped in 2.5.0 🚢 |
Description
Given the following datamodel
If you run
prisma2 migrate save --experimental
, you'll be prompted to create a new db if it doesn't exist.Unfortunately, it'll always ask you to recreate it, even when using
prisma2 migrate up --experimental
Here's the prompt:
It looks like
/dev.db
is used to check if the file already exists, instead of./dev.db
The text was updated successfully, but these errors were encountered: