Skip to content

v3.0.0-beta.13

Pre-release
Pre-release
Compare
Choose a tag to compare
@mmkal mmkal released this 15 Dec 15:54
· 81 commits to master since this release

Breaking change to the beta tag: beforeAll/afterAll are replaced by beforeCommand/afterCommand, which also run on executed and pending commands too now. For hooks that should only run before migrations are applied/reverted, use:

umzug.on('beforeCommand', ev => {
  if (ev.command !== 'up' && ev.command !== 'down') {
    return
  }
  // ...whatever you were doing in beforeAll/afterAll before
})

v3.0.0-beta.12...v3.0.0-beta.13