Skip to content

Commit

Permalink
Closing knex connection after migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Dec 29, 2015
1 parent 44af4e3 commit 9e53e00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Runner/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ class Runner {
return ''
})
.then((response) => {
this.knex.destroy()
const status = _.size(migrated) > 0 ? 'completed' : 'skipped'
resolve({migrated, status})
})
Expand All @@ -348,6 +349,7 @@ class Runner {
}
})
.then((response) => {
this.knex.destroy()
const status = _.size(migrated) > 0 ? 'completed' : 'skipped'
resolve({migrated, status})
})
Expand Down

0 comments on commit 9e53e00

Please sign in to comment.