UNPKG

east

Version:

node.js database migration tool for mongodb, sqlite, postgres, mysql, couchbase

10 lines (8 loc) 285 B
const pathUtils = require('path'); module.exports = function getMigrationPathByName( name, migrationFileType = 'executable' ) { const {dir, extension} = this._getMigrationFileTypeParams(migrationFileType); return pathUtils.resolve(pathUtils.join(dir, `${name}.${extension}`)); };