UNPKG

east

Version:

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

13 lines (11 loc) 283 B
const pathExists = require('path-exists'); module.exports = function isMigrationExists( name, migrationFileType = 'executable' ) { return Promise.resolve() .then(() => { const path = this.getMigrationPathByName(name, migrationFileType); return pathExists(path); }); };