Improved Production Database Seeding Instructions #477
kentcdodds
announced in
Announcements
Replies: 1 comment
-
Now if you'll excuse me, I've got to add a step to this exercise: https://auth.epicweb.dev/08 😅 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm thrilled to share that now production database seeding instructions have been updated to a much better approach.
Now, the recommended approach is to manually update the
migration.sql
generated by prisma. This allows the seeding to be reproducible any time you want to start up a new database. This process also makes it much easier to seed new data over time any time you make a migration that requires more seeded data.It just aligns much better with the way Prisma wants to manage migrations (production database seeding falls into the category of database migration).
I've also moved the database docs to a dedicated page: https://github.com/epicweb-dev/epic-stack/blob/main/docs/database.md
The primary commit related to this change: 3ac71e2
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions