Skip to content

Commit 1aeb491

Browse files
committed
fix: don't apply migrations on continuation
1 parent cbab3af commit 1aeb491

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/create-db-dump.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,9 @@ async function main() {
296296
...baseEnv,
297297
BLOCK_TO: String(blockTo),
298298
}
299-
await runCmd('npm run migration:apply', { env: procEnv })
299+
if (!continueRun) {
300+
await runCmd('npm run migration:apply', { env: procEnv })
301+
}
300302
await runWithRetries(`npm run process:${alias}`, { env: procEnv, retries: 5, delayMs: 30000 })
301303

302304
// Dump DB using existing script to get the AWS command

0 commit comments

Comments
 (0)