Skip to content
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

Try to load prisma.schema path from pkg json #3874

Merged
merged 6 commits into from
Oct 3, 2022

Conversation

Zeko369
Copy link
Collaborator

@Zeko369 Zeko369 commented Oct 1, 2022

Closes: #3860

What are the changes and their implications?

It first tries to load package.json prisma.schema value (i.e. if you have a prisma/schema.prisma folder instead of db/schema.prisma) instead of just using db/schema.prisma

Bug Checklist

  • Integration test added (see test docs if needed)

Feature Checklist

@changeset-bot
Copy link

changeset-bot bot commented Oct 1, 2022

🦋 Changeset detected

Latest commit: e121070

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 29 packages
Name Type
@blitzjs/generator Patch
blitz Patch
@blitzjs/codemod Patch
@blitzjs/auth Patch
@blitzjs/next Patch
@blitzjs/rpc Patch
@blitzjs/recipe-base-web Patch
@blitzjs/recipe-bulma Patch
@blitzjs/recipe-bumbag-ui Patch
@blitzjs/recipe-chakra-ui Patch
@blitzjs/recipe-emotion Patch
@blitzjs/recipe-gh-action-yarn-mariadb Patch
@blitzjs/recipe-gh-action-yarn-postgres Patch
@blitzjs/recipe-ghost Patch
@blitzjs/recipe-graphql Patch
@blitzjs/recipe-logrocket Patch
@blitzjs/recipe-material-ui Patch
@blitzjs/recipe-next-ui Patch
@blitzjs/recipe-passenger Patch
@blitzjs/recipe-quirrel Patch
@blitzjs/recipe-reflexjs Patch
@blitzjs/recipe-render Patch
@blitzjs/recipe-secureheaders Patch
@blitzjs/recipe-stitches Patch
@blitzjs/recipe-styled-components Patch
@blitzjs/recipe-tailwind Patch
@blitzjs/recipe-theme-ui Patch
@blitzjs/recipe-vanilla-extract Patch
@blitzjs/config Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@beerose
Copy link
Contributor

beerose commented Oct 3, 2022

Could you add a changeset too?

@itsdillon itsdillon merged commit d6717b9 into main Oct 3, 2022
@itsdillon itsdillon deleted the fix/generator-loads-hardcoded-prisma-schema-path branch October 3, 2022 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't rely on hardcoded db/prisma.schema — use whatever is configured in package.json
4 participants