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
feat(cli): gate UUID segment in temp Prisma schema name behind --random-prisma-schema-name
The UUID suffix introduced in f962351 to avoid collisions between
concurrent `zen db push` runs is now opt-in. Default behavior restores
the upstream `~schema.prisma` filename; pass `--random-prisma-schema-name`
to `db push` or any `migrate` subcommand to re-enable the UUID suffix.
Addresses the maintainer's review comment on #2491.
Assisted-by: Cursor:claude-opus-4.7 [Shell] [Read] [StrReplace] [Write]
Copy file name to clipboardExpand all lines: packages/cli/src/index.ts
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,11 @@ function createProgram() {
76
76
constnoVersionCheckOption=newOption('--no-version-check','do not check for new version');
77
77
constnoTipsOption=newOption('--no-tips','do not show usage tips');
78
78
79
+
constrandomPrismaSchemaNameOption=newOption(
80
+
'--random-prisma-schema-name',
81
+
'append a random UUID to the temporary Prisma schema filename to avoid collisions between concurrent runs sharing a working directory (default: "~schema.prisma")',
0 commit comments