You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`--skip-generate`| No | Skip generation of artifacts such as Prisma Client |
1199
1198
|`--force-reset`| No | Resets the database and then updates the schema - useful if you need to start from scratch due to unexecutable migrations. |
1200
1199
|`--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. |
1201
1200
|`--help` / `--h`| No | Displays the help message |
1202
1201
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
+
1203
1208
#### Arguments
1204
1209
1205
1210
| Argument | Required | Description | Default |
@@ -1362,14 +1367,19 @@ The `migrate dev` command:
1362
1367
1. Applies pending migrations to the shadow database (for example, new migrations created by colleagues)
1363
1368
1. Generates a new migration from any changes you made to the Prisma schema before running `migrate dev`
1364
1369
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)
1366
1370
1367
1371
:::warning
1368
1372
1369
1373
This command is not supported on [MongoDB](/orm/overview/databases/mongodb). Use [`db push`](/orm/prisma-migrate/workflows/prototyping-your-schema) instead.
1370
1374
1371
1375
:::
1372
1376
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
+
1373
1383
See also:
1374
1384
1375
1385
-[Conceptual overview of Prisma Migrate](/orm/prisma-migrate)
|`--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) ||
1385
1393
|`--name` / `-n`| No | Name the migration (e.g. `prisma migrate dev --name added_job_title`) ||
1386
1394
|`--help` / `-h`| No | Displays the help message ||
1387
1395
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
+
1388
1402
:::info
1389
1403
1390
1404
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.
0 commit comments