If anyone is looking for a javascript specific solution, I maintain a module originally written (and abandoned) by TJ.
$ npm i migrate
$ npm i migrate
If anything, I'm a lot less likely to use something written in JS when correctness is absolutely paramount.