You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to add a new field on an existing table, I'm using yarn nx run <project_name>:migrate to perform the migration after having added the fields on my schema.
The above command fails with the following error: "Prisma Migrate has detected that the environment is non-interactive, which is not supported". The same command has worked previously, so I suspect it's the specific changes to the schema which are causing the error.
Attempted workarounds
Running the prisma command yarn prisma migrate dev directly. This works:
Expected behavior
The NX command should support interactivity with prisma migrate dev.
Problem
When attempting to add a new field on an existing table, I'm using
yarn nx run <project_name>:migrate
to perform the migration after having added the fields on my schema.The above command fails with the following error: "Prisma Migrate has detected that the environment is non-interactive, which is not supported". The same command has worked previously, so I suspect it's the specific changes to the schema which are causing the error.
Attempted workarounds
Running the prisma command
yarn prisma migrate dev
directly. This works:Expected behavior
The NX command should support interactivity with prisma migrate dev.
Comments
It seems like this is a known issue. Prisma docs call it out: https://www.prisma.io/docs/concepts/components/prisma-migrate#troubleshooting
Also related to prisma/prisma#9943
The text was updated successfully, but these errors were encountered: