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

add seed commands to prisma guide #59

Merged
merged 4 commits into from
Mar 3, 2024
Merged

add seed commands to prisma guide #59

merged 4 commits into from
Mar 3, 2024

Conversation

khaya-zulu
Copy link
Contributor

In this pr, we adding seed steps to the prisma guide.

Copy link

vercel bot commented Feb 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview Feb 19, 2024 5:31pm

```

#### Limitations to consider with restoring

There are a few things to keep in mind when running this feature:
1. Backwards incompatible table changes will result in no data being restored for the entire table. Backwards incompatible changes include but aren't limited to: removed columns or newly added columns that do not have any default values. The result of attempting a restoration with the `--no-reset --no-schema` flags, given the above changes will result in an empty table.
2. Under the hood, Snaplet relies on `CREATE DATABASE ... WITH TEMPLATE` for cloning the current database as part of the restoration, even though we subsequently clear the tables. We do this so we can preserve the original table IDs. This implementation detail may cause performance issues for large databases. If you do experience any performance issues, please reach out and [let us know](https://discord.com/invite/6HUuajc866).
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This statements are still true for restoring.

@khaya-zulu khaya-zulu requested review from avallete, jgoux, peterp and justinvdm and removed request for avallete February 19, 2024 17:32
@peterp peterp merged commit ccd7ad0 into main Mar 3, 2024
2 checks passed
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