-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supply a custom path to Prisma schema file for CLI commands (i.e. --schema
?)
#1412
Comments
--path
?)--schema
?)
@schickling I'm implementing it like this |
Internal: Can you link the spec here please @Jolg42? |
There is none at the moment, Søren is on it :) |
It is implemented as @sorenbs I can't find it in the spec, is it on a branch? |
It is in https://github.com/prisma/specs/blob/master/cli/README.md#init in |
This comment has been minimized.
This comment has been minimized.
Ok got it. We can set this from package.json: "prisma": {
"schema": "prisma/schema.prisma"
}, |
This is useful when you want to run the commands from the root folder of your project for example and your
schema.prisma
file is in a subdirectory. It avoids changing directories.PRISMA_SCHEMA_PATH
)The text was updated successfully, but these errors were encountered: