nx-tools icon indicating copy to clipboard operation
nx-tools copied to clipboard

Change MIGRATE Executor

Open johannesschobel opened this issue 4 years ago • 2 comments
trafficstars

Dear @gperdomor ,

just wanted to let you know, that the migrate command for prisma changed in the last versions. Find more details here on the official prisma docs: https://www.prisma.io/docs/concepts/components/prisma-migrate/prisma-migrate-flows

Furthermore, i would suggest to split the migrations command into multiple ones. Currently the migrations command adds a migration and automatically migrates the database. I would suggest to have 2 separate commands, i.e.:

nx-tools:create-migration, which looks like this:

prisma migrate dev --create-only --preview-feature

and a nx-tools:run-migration, which looks like this:

prisma migrate dev --preview-feature

All the best, Johannes

johannesschobel avatar Jan 14 '21 09:01 johannesschobel

@johannesschobel Hi, the prisma plugin is authored by @wSedlacek, we are in process of upgrade the packages to Nx 11 and @nrwl/devkit, I will assign this issue to him and hopefully he can evaluate your proposal

gperdomor avatar Jan 19 '21 19:01 gperdomor

I won't have a chance to look at this till this weekend. You're welcome to open a PR in the interm.

wSedlacek avatar Jan 19 '21 19:01 wSedlacek