From 5a73c98485258dbf062364c43f8526dd00ba2dae Mon Sep 17 00:00:00 2001 From: sanny-io Date: Fri, 17 Oct 2025 04:46:23 +0000 Subject: [PATCH] fix: skip generators for `migrate reset` --- packages/cli/src/actions/migrate.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/cli/src/actions/migrate.ts b/packages/cli/src/actions/migrate.ts index 896cc991..19f94ce7 100644 --- a/packages/cli/src/actions/migrate.ts +++ b/packages/cli/src/actions/migrate.ts @@ -82,9 +82,12 @@ async function runDev(prismaSchemaFile: string, options: DevOptions) { async function runReset(prismaSchemaFile: string, options: ResetOptions) { try { - const cmd = ['prisma migrate reset', ` --schema "${prismaSchemaFile}"`, options.force ? ' --force' : ''].join( - '', - ); + const cmd = [ + 'prisma migrate reset', + ` --schema "${prismaSchemaFile}"`, + ' --skip-generate', + options.force ? ' --force' : '' + ].join(''); await execPackage(cmd); } catch (err) {