deploy
Applies all pending migrations, and creates the database if it does not exist.
Options can be configured in project.json when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/reference/project-configuration#targets.
Warning
This command is not supported on MongoDB. Use db push instead.
Examples
"prisma-deploy": {
"executor": "@nx-tools/nx-prisma:deploy",
}You may want to use a custom schema file:
"prisma-deploy": {
"executor": "@nx-tools/nx-prisma:deploy",
"options": {
"schema": "custom-file.prisma",
}
}Options:
Prop
Type
Last updated on