Repository navigation
Conversation
`prisma db seed` is currently being reimagined and simplified so we can ship it in GA soon. This PR is a proposal for changes to the docs that should reflect the new db seed. Highlights: - Prisma no longer tried to figure out how to run the script and look for exports, it only looks for an explicit `seed` command in the `prisma` key inside `package.json` and tries to run that command. - We will warn users that have the old setup when we detect it, so they have an easy path to migrating their seed scripts. - `db seed` is technically under a preview feature, but that functionality is used by `migrate dev`, which is stable, so it is going to be a breaking change. Extra links: - Internal workshop that led to the redesign: https://www.notion.so/prismaio/db-seed-workshop-2a104a37762e4fb7bf3100c0227569ff - Internal message on how we plan to roll out this change: https://prisma-company.slack.com/archives/CGMCB82N8/p1626703047011500 - This PR by Joël contains the actual changes: prisma/orm#8146 The docs changes should be rolled out as we release the revamped seeding functionality.
janpio
marked this pull request as draft
July 26, 2021 14:43
Jolg42
self-requested a review
July 26, 2021 15:29
Contributor
Closed
5 of 7 tasks
Merged
47 of 50 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
prisma db seedis currently being reimagined and simplified so we canship it in GA soon.
This PR is a proposal for changes to the docs that should reflect the
new
db seed. Highlights:for exports, it only looks for an explicit
seedcommand in theprismakey insidepackage.jsonand tries to run that command.have an easy path to migrating their seed scripts.
db seedis technically under a preview feature, but thatfunctionality is used by
migrate dev, which is stable, so it isgoing to be a breaking change.
Extra links:
The docs changes should be rolled out as we release the revamped seeding
functionality.