Want to generate prisma schemas during keystone prisma ... commands
#8697
pahaz
started this conversation in
Feature requests
Replies: 2 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Relly it's not enough to just call This solution is not good for read-only containers. If there are no changes, there is no need to update any files; therefore, the correct approach is to verify the modifications. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So, I've changed some code and I want to regenerate prisma migrations by
keystone prisma migrate dev --create-only.At the moment I have got an error
Your Prisma and GraphQL schemas are not up to date.As I can see here: https://github.com/keystonejs/keystone/blob/main/packages/core/src/scripts/prisma.ts#L23

It's better to call
generateTypescriptTypesAndPrismabefore the validation. And, probably we can removevalidatePrismaAndGraphQLSchemasbecause it's ok if we have the wrong GraphQL schemas.Beta Was this translation helpful? Give feedback.
All reactions