Reputation: 482
We are currently building a CI test pipeline that includes down-migration process after Prisma migration failure.
But we can't quite figure out how to reproduce the situation where it fails on purpose. Is there any easy, simple way to make migration fail?
Thanks.
(To use broken SQL is not a good idea because we suppose that we are going to use migrations(*.sql) which are auto-generated by Prisma that are not broken. So it is not suitable for what we expect from the CI.)
Upvotes: 1
Views: 170
Reputation: 823
A migration might fail if:
See the Prisma documentation on failed migration.
Upvotes: 1