Skip to content

[DO NOT MERGE] Suggest change to the seed-database docs - #2055

Closed
tomhoule wants to merge 3 commits into
mainfrom
db-seed-revamp
Closed

tomhoule wants to merge 3 commits into
mainfrom
db-seed-revamp

Conversation

@tomhoule

@tomhoule tomhoule commented Jul 22, 2021 •

Copy link
Copy Markdown
Contributor

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 tries 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:

The docs changes should be rolled out as we release the revamped seeding
functionality.

`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
janpio marked this pull request as draft July 26, 2021 14:43
@Jolg42
Jolg42 self-requested a review July 26, 2021 15:29
@molebox molebox mentioned this pull request Aug 10, 2021
@Jolg42 Jolg42 mentioned this pull request Aug 13, 2021
5 of 7 tasks
@molebox molebox mentioned this pull request Aug 17, 2021

@janpio janpio left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will be replaced by #2161

@Jolg42 Jolg42 mentioned this pull request Aug 20, 2021
47 of 50 tasks
@Jolg42 Jolg42 closed this Aug 23, 2021
@tomhoule
tomhoule deleted the db-seed-revamp branch September 3, 2021 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants