Skip to content

Commit d52f722

Browse files
update prisma v7 seeding docs commands
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
1 parent 5b0cb34 commit d52f722

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/database.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ if what you need to seed is a lot of data), so here's an easy way to help out:
165165
Then modify that file to create the data you want to seed.
166166
1. Create a temporary database file to seed the data into.
167167
```sh
168-
DATABASE_URL=file:./seed.local.db npx prisma migrate reset --skip-seed --force
168+
DATABASE_URL=file:./seed.local.db npx prisma migrate reset --force
169169
```
170170
1. Run the custom seed script locally to generate the data you want to seed.
171171
```sh
@@ -186,7 +186,7 @@ If your app has already applied all migrations, then the changes to the
186186
you can run the following command to apply the migration:
187187

188188
```sh nonumber
189-
fly ssh console -C "npx prisma migrate reset --skip-seed --force" --app [YOUR_APP_NAME]
189+
fly ssh console -C "npx prisma migrate reset --force" --app [YOUR_APP_NAME]
190190
```
191191

192192
> **WARNING**: This will reset your database and apply all migrations. Continue

docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ set SKIP_SETUP=true && set SKIP_FORMAT=true && set SKIP_DEPLOYMENT=true && npx e
4848
- Seed database:
4949

5050
```sh
51-
npx prisma@6 db seed
51+
npx prisma migrate reset --force
5252
```
5353

5454
- Start dev server:

0 commit comments

Comments
 (0)