Skip to content

Commit 980e2ec

Browse files
docs: document removal of --skip-generate and --skip-seed flags in Prisma 7 (#7385)
1 parent 44f03b7 commit 980e2ec

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

content/200-orm/500-reference/200-prisma-cli-reference.mdx

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,11 +1195,16 @@ export default defineConfig({
11951195

11961196
| Options | Required | Description |
11971197
| :------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------- |
1198-
| `--skip-generate` | No | Skip generation of artifacts such as Prisma Client |
11991198
| `--force-reset` | No | Resets the database and then updates the schema - useful if you need to start from scratch due to unexecutable migrations. |
12001199
| `--accept-data-loss` | No | Ignore data loss warnings. This option is required if as a result of making the schema changes, data may be lost. |
12011200
| `--help` / `--h` | No | Displays the help message |
12021201

1202+
:::warning
1203+
1204+
The `--skip-generate` flag was removed in Prisma 7. `db push` no longer runs `prisma generate` automatically. Run it explicitly if needed.
1205+
1206+
:::
1207+
12031208
#### Arguments
12041209

12051210
| Argument | Required | Description | Default |
@@ -1362,14 +1367,19 @@ The `migrate dev` command:
13621367
1. Applies pending migrations to the shadow database (for example, new migrations created by colleagues)
13631368
1. Generates a new migration from any changes you made to the Prisma schema before running `migrate dev`
13641369
1. Applies all unapplied migrations to the development database and updates the `_prisma_migrations` table
1365-
1. Triggers the generation of artifacts (for example, Prisma Client)
13661370

13671371
:::warning
13681372

13691373
This command is not supported on [MongoDB](/orm/overview/databases/mongodb). Use [`db push`](/orm/prisma-migrate/workflows/prototyping-your-schema) instead.
13701374

13711375
:::
13721376

1377+
:::info
1378+
1379+
**Prisma 7**: `migrate dev` no longer automatically triggers `prisma generate` or seed scripts. Run `prisma generate` explicitly if needed.
1380+
1381+
:::
1382+
13731383
See also:
13741384

13751385
- [Conceptual overview of Prisma Migrate](/orm/prisma-migrate)
@@ -1380,11 +1390,15 @@ See also:
13801390
| Option | Required | Description | Default |
13811391
| :---------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------ |
13821392
| `--create-only` | No | Creates a new migration but does not apply it. This also works if you haven't made any changes to your schema (in that case, an empty migration is created). Run `migrate dev` to apply migration. | |
1383-
| `--skip-seed` | No | Skip triggering seed | |
1384-
| `--skip-generate` | No | Skip triggering generators (for example, Prisma Client) | |
13851393
| `--name` / `-n` | No | Name the migration (e.g. `prisma migrate dev --name added_job_title`) | |
13861394
| `--help` / `-h` | No | Displays the help message | |
13871395

1396+
:::warning
1397+
1398+
The `--skip-generate` and `--skip-seed` flags were removed in Prisma 7. `migrate dev` no longer runs `prisma generate` or seeds automatically. Run them explicitly if needed.
1399+
1400+
:::
1401+
13881402
:::info
13891403

13901404
If a [schema drift](/orm/prisma-migrate/understanding-prisma-migrate/shadow-database#detecting-schema-drift) is detected while running `prisma migrate dev` using `--create-only`, you will be prompted to reset your database.

content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/400-upgrading-to-prisma-7.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,12 @@ To seed your database in v7, you must explicitly run:
375375
npx prisma db seed
376376
```
377377

378+
### CLI flags `--skip-generate` and `--skip-seed` removed
379+
380+
The `--skip-generate` flag was removed from `prisma migrate dev` and `prisma db push`. The `--skip-seed` flag was removed from `prisma migrate dev`.
381+
382+
`migrate dev` and `db push` no longer run `prisma generate` automatically. You must run `prisma generate` explicitly to generate Prisma Client.
383+
378384
### Various environment variables have been removed
379385

380386
We've removed a small selection of Prisma-specific environment variables.

0 commit comments

Comments
 (0)