Closed Jolg42 closed 3 years ago
New output when edited + unapplied draft from added test
Prisma Schema loaded from prisma/schema.prisma
The following migrations were edited after they were applied:
- 20201231000000_test
Prisma Migrate applied the following migration(s):
migrations/
└─ 20201231000000_test/
└─ migration.sql
└─ 20201231000000_draft/
└─ migration.sql
While investigating https://github.com/prisma/migrations-team/issues/86 I found
Current message
To get it
prisma migrate
prisma migrate --draft
prisma migrate
againFor me it's a bit weird that the information is duplicated.
TLDR it happens when there is an editedMigrationNames and at the same time databaseIsBehind.
Full DEBUG
If I delete the draft migration we actually get the expected do you want to reset?
My expected workflow is that it should go for the reset flow in both cases.