Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
fix(deploy): check migration steps for backward compatability (#3923)
Browse files Browse the repository at this point in the history
  • Loading branch information
Divyendu Singh authored and timsuchanek committed Jan 24, 2019
1 parent 6f10763 commit f33adaa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/packages/prisma-cli-core/src/commands/deploy/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,8 @@ ${chalk.gray(
}
}

const steps = payload.steps || payload.migration.steps || []
const steps =
payload.steps || (payload.migration && payload.migration.steps) || []

if (steps.length === 0) {
if (dryRun) {
Expand Down

0 comments on commit f33adaa

Please sign in to comment.