tj / node-migrate

Abstract migration framework for node
MIT License
1.53k stars 221 forks source link

Console.log not working in migration script #191

Closed bflemi3 closed 2 years ago

bflemi3 commented 2 years ago

As the title says, in my migration script, I'm just trying to print anything at this point, and nothing is making it to the console. Am I missing something, is this possible?

I've tried just throwing an Error immediately and the migration still says "migration: complete" with no other message about an exception or anything.

Screen Shot 2022-01-10 at 2 16 20 PM

I've tried something as simple as the script below. in is not being logged to the console. I can throw as well, and it still says "migration: complete".

module.exports.up = async function (next) {
  let client
  console.log('in')

  next()
}

module.exports.down = function (next) {
  next()
}