Skip to content

Commit b677467

Browse files
committed
fix migration script arg position bug
1 parent 6547df1 commit b677467

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

scripts/prisma-migrate-with-views-workaround.mjs

+1-4
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,9 @@ try {
3131
const runProduction = productionFlagIndex > -1;
3232
if (runProduction) argv.splice(productionFlagIndex, 1);
3333

34-
const nameFlagIndex = argv.indexOf('--name');
35-
const hasName = nameFlagIndex > -1;
36-
3734
let { error } = spawnSync(
3835
`prisma migrate ${runProduction ? 'deploy' : 'dev'}`,
39-
hasName && !runProduction ? argv.slice(nameFlagIndex) : [],
36+
!runProduction ? argv.slice(2) : [],
4037
spawnOptions
4138
);
4239
if (error) throw error;

0 commit comments

Comments
 (0)