Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
postgrator.migrate('001', function (err, migrations) {
if (err) {
console.log(err)
} else {
console.log(migrations)
}
postgrator.endConnection(function () {
// connection is closed, or will close in the case of SQL Server
})
})
postgrator.migrate('201606281159', function(err, migrations) {
if (err) {
reject(err);
} else {
postgrator.endConnection(function() {
resolve(migrations);
});
}
});
});
postgrator.migrate('201606201000', function(err, migrations) {
if (err) {
reject(err);
} else {
postgrator.endConnection(function() {
resolve(migrations);
});
}
});
});
postgrator.migrate('max', function (err, migrations) {
postgrator.endConnection(function () {
return cb(err, migrations);
});
});
};